This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[m68k] Fix linking for binaries using -mid-shared-library


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/



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]