[m68k] Fix linking for binaries using -mid-shared-library
Bernardo Innocenti
bernie@develer.com
Fri Dec 26 18:58:00 GMT 2003
Hello,
without this, bootstrap fails in libstdc++'s configure script for
multilib subdirs using the -mid-shared-library option.
OK for mainline?
2003-12-26 Bernardo Innocenti <bernie@develer.com>
* config/m68k/uclinux.h (LIB_SPEC): Add elf2flt magic required for
correct linking of executables using id-based shared libraries.
--- gcc-3.4-20031217.orig/gcc/config/m68k/uclinux.h 2003-12-24 16:04:08.453819503 +0100
+++ gcc-3.4-20031217/gcc/config/m68k/uclinux.h 2003-12-24 16:03:39.512825760 +0100
@@ -30,7 +30,7 @@
profiling, or libg.a. */
#undef LIB_SPEC
#define LIB_SPEC "\
-%{mid-shared-library:-R libc.gdb%s} -lc \
+%{mid-shared-library:-R libc.gdb%s -elf2flt -shared-lib-id 0} -lc \
"
/* we don't want a .eh_frame section. */
--
// Bernardo Innocenti - Develer S.r.l., R&D dept.
\X/ http://www.develer.com/
More information about the Gcc-patches
mailing list