#1237 closed defect (fixed)
GPM: "LDFLAGS=-lm" not needed anymore on LFS 6.0
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | high | Milestone: | |
Component: | BOOK | Version: | SVN |
Severity: | normal | Keywords: | |
Cc: |
Description ¶
GPM installation has the following configuration line: LDFLAGS="-lm" ./configure --prefix=/usr --sysconfdir=/etc LDFLAGS="-lm" is not needed anymore on LFS-6.0, whithout it GPM builds just fine. To test this, compile the following code on LFS-6.0: cat > math_test.c << "EOF" int main(void) {ceil (1.1);} EOF gcc -o math_test math_test.c It'll fail on pre-LFS-6.0 systems, but will succeed on newer LFS. The same applies for other math functions, like pow or sqrt. PS: I'm not sure if it was an expected behaviour or just a GCC/Binutils/Glibc bug.
Change History (3)
comment:1 by , 20 years ago
comment:2 by , 20 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Apparently only gcc-3.4 has ceil as a builtin so we can't rely on it in the future. Also, this builtin does not work on ppc. However, testing has shown that LDFLAGS were not being honored on the configure line anyway. Moving it to make works fine.
As for the concern over how LDFLAGS is set -- for gpm the point is moot. All invocations (e.g. LDFLAGS="-lm" make, make LDFLAGS="-lm", and make LDFLAGS+="-lm") produced the same result.
Note: The same is valid for FLAC.