Opened 19 years ago

Closed 19 years ago

Last modified 10 years ago

#1237 closed defect (fixed)

GPM: "LDFLAGS=-lm" not needed anymore on LFS 6.0

Reported by: lizardo@… Owned by: blfs-book@…
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 lizardo@…, 19 years ago

Note: The same is valid for FLAC.

comment:2 by archaic@…, 19 years ago

Resolution: fixed
Status: newclosed

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.

comment:3 by bdubbs@…, 10 years ago

Milestone: old

Milestone old deleted

Note: See TracTickets for help on using tickets.