crosstool-ng/scripts
Benoît Thébaudeau" f173e77e32 complibs/cloog: fix linking with libm
In Ubuntu 11.04 and 11.10, the default options for ld have changed.
--no-copy-dt-needed-entries and --as-needed are now enabled by default, which
causes errors like:

[EXTRA]    Checking CLooG/ppl
[DEBUG]    ==> Executing: 'make' '-j3' '-s' 'check'
[ALL  ]    Making check in .
[ALL  ]    config.status: creating include/cloog/cloog-config.h
[ALL  ]    config.status: include/cloog/cloog-config.h is unchanged
[ALL  ]    libtool: link: i686-build_pc-linux-gnu-gcc -Wall -fomit-frame-pointer
 -pipe -o cloog cloog.o  -L/<snip>/build/static/lib ./.libs/libcloog.a -lm
 /<snip>/build/static/lib/libppl_c.a /<snip>/build/static/lib/libpwl.a
 /<snip>/build/static/lib/libppl.a /<snip>/build/static/lib/libgmpxx.a
 /<snip>/build/static/lib/libgmp.a -lstdc++
[ALL  ]    /usr/bin/ld: /<snip>/build/static/lib/libppl.a(MIP_Problem.o):
 undefined reference to symbol 'sqrt@@GLIBC_2.0'
[ALL  ]    /usr/bin/ld: note: 'sqrt@@GLIBC_2.0' is defined in DSO
 /usr/lib/gcc/i686-linux-gnu/4.6.1/../../../i386-linux-gnu/libm.so so try adding
 it to the linker command line
[ALL  ]    /usr/lib/gcc/i686-linux-gnu/4.6.1/../../../i386-linux-gnu/libm.so:
 could not read symbols: Invalid operation
[ALL  ]    collect2: ld returned 1 exit status
[ERROR]    make[2]: *** [cloog] Error 1
[ERROR]    make[1]: *** [check-recursive] Error 1

See:
https://wiki.ubuntu.com/NattyNarwhal/ToolchainTransition

This patch fixes these errors by placing '-lm' at the right place on the command
line as libppl requires libm when linking cloog.

Signed-off-by: "Benoît Thébaudeau" <benoit.thebaudeau@advansee.com>
2012-01-27 13:31:16 +01:00
..
build complibs/cloog: fix linking with libm 2012-01-27 13:31:16 +01:00
addToolVersion.sh scripts: fix tools override 2012-01-16 23:36:42 +01:00
config.guess scripts: update config.{guess,sub} 2012-01-03 23:02:04 +01:00
config.sub scripts: update config.{guess,sub} 2012-01-03 23:02:04 +01:00
crosstool-NG.sh.in scripts: fix tools override 2012-01-16 23:36:42 +01:00
functions configure: fix kconfig option names 2012-01-16 23:45:16 +01:00
gen_in_frags.sh config: move multi-line shell commands from Makefile to script 2011-07-03 23:02:16 +02:00
install-sh configure: use autoconf to generate configure 2011-11-07 22:28:40 +01:00
mk-patch.sh scripts/mk-patch: squash all non alphanumeric chars 2011-04-08 00:58:33 +02:00
mk-release.sh misc: change references to point to the new website 2011-10-18 20:17:41 +02:00
patch-renumber.sh scripts: fix tools override 2012-01-16 23:36:42 +01:00
patch-rework.sh misc: fix more typos here and there... 2011-07-17 16:53:40 +02:00
populate.in misc: fix more typos here and there... 2011-07-17 16:53:40 +02:00
saveSample.sh.in scripts: fix tools override 2012-01-16 23:36:42 +01:00
scripts.mk scripts: some eye-candy 2009-10-30 20:08:44 +01:00
showSamples.sh scripts: fix tools override 2012-01-16 23:36:42 +01:00
showTuple.sh.in scripts: fix tools override 2012-01-16 23:36:42 +01:00
toolchain-config.in scripts: simplify and fix the toolchain config script 2011-08-19 00:52:05 +02:00
xldd.in scripts/xldd: fix missing arg to one printf 2011-07-12 23:21:27 +02:00