[PATCH] link libgcc_s.so against a lib containing copysignl on powerpc-*-linux-uclibc
Bernhard Reutner-Fischer
rep.dot.nop@gmail.com
Tue Oct 7 14:36:00 GMT 2008
Hi,
The attached patch against trunk links libgcc_s.so against the library
containing copysignl().
On glibc the libc.so carries a copy of the math function copysignl() but
on uClibc math functions like copysignl() live in libm. Since libgcc_s
contains unresolved symbols, any attempt to link against libgcc_s
without explicitely specifying -lm fails, resulting in a broken
bootstrap of the compiler.
gcc/ChangeLog:
2008-10-07 Bernhard Reutner-Fischer <>
* config/t-slibgcc-elf-ver (SHLIB_LC): Also link against
@libgcc_libm@.
libgcc/ChangeLog:
2008-10-07 Bernhard Reutner-Fischer <>
* configure.ac (libgcc_cv_copysignl_lib, LIBGCC_LIBM): New
variables to denote if we are on powerpc-uclibc where libm
functions live in libm.
* Makefile.in (LIBGCC_LIBM): Set.
(libgcc_s$(SHLIB_EXT)): Substitute @libgcc_libm@ with
$(LIBGCC_LIBM).
* (configure): Regenerate.
Ok for trunk?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 820-powerpc-softfloat-libm_for_copysignl.patch
Type: text/x-diff
Size: 6620 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20081007/d6366955/attachment.bin>
More information about the Gcc-patches
mailing list