crosstool-ng/patches
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
..
binutils binutils/binutils: add the patches used by BuildRoot for 2.22 2011-12-14 19:57:47 +01:00
cloog-ppl complibs/cloog: fix linking with libm 2012-01-27 13:31:16 +01:00
cygwin/1.5.15-1 Third go at renaming patches to contain neither the package name nor the package version. 2008-07-28 21:08:01 +00:00
dmalloc/5.5.2 Fourth step at renaming patches: renumber all patches with a 10-step. 2008-07-28 21:32:33 +00:00
duma [debug-duma] Add latest versions 2009-08-02 23:33:36 +02:00
eglibc libc/eglibc: remove obsolete patch 2010-12-29 12:40:36 +01:00
ELFkickers/2.0a Add the first tool facility: sstrip. 2007-06-01 17:00:43 +00:00
gcc cc/gcc: propagate 4.5.2 patchset to 4.5.3 2011-09-12 18:12:52 +02:00
gdb debug/gdb: rename patch directories 2011-09-11 18:28:45 +02:00
glibc libc/glibc: update patchset, add ports patchset 2011-05-03 00:20:04 +02:00
gmp complibs/gmp: fix patch against 5.0.1 2010-04-07 00:04:06 +02:00
libelf complibs: update versions 2010-03-30 22:31:49 +02:00
linux/3.0.9 kernel/linux: missed porting the 3.0.8 patchset to 3.0.9 2011-11-13 15:46:33 +01:00
ltrace debug/ltrace: Fix HOST_OS and ar 2011-08-22 09:26:02 +02:00
mingw-libgnurx/2.5.1 kernel/mingw: add target libraries 2010-07-11 21:36:55 +02:00
mpc/0.8.1 complibs/mpc: fix MPC 0.8.1 build with MPFR 3.0.0 2010-08-05 17:59:51 +02:00
mpfr complibs/mpfr: add upstream patches 2010-01-07 18:31:13 +01:00
newlib libc/newlib: add latest version 2011-07-07 00:01:50 +02:00
PDCurses/3.4 kernel/mingw: add target libraries 2010-07-11 21:36:55 +02:00
ppl complibs/ppl: fix 0.11-0.11.2 to compile with --disable-shared 2011-05-19 23:09:43 +02:00
strace debug/strace: fix strace 4.5.19 to properly build with latest Linux kernels 2010-01-01 12:17:39 +01:00
uClibc libc/uClibc: add latest version 2011-12-30 22:04:24 +01:00