Hello,
Libtool strips off "-nodefaultlibs", "-nostartfiles" and "-nostdlib" in
the link mode. They are legitimate GCC linker flags which may be needed
when a non-standard set of startup files/system libraries is used, e.g.
during a build of new ones.
2005-04-04 Maciej W. Rozycki <[EMAIL PROTECTED]>
* ltmain.in (link mode): Pass through "-nodefaultlibs",
"-nostartfiles" and "-nostdlib".
Please apply.
Maciej
libtool-1.5.12-gcc-linkflags.patch
diff -up --recursive --new-file libtool-1.5.12.macro/ltmain.in
libtool-1.5.12/ltmain.in
--- libtool-1.5.12.macro/ltmain.in 2005-02-05 14:04:29.000000000 +0000
+++ libtool-1.5.12/ltmain.in 2005-02-12 23:37:40.000000000 +0000
@@ -1586,6 +1586,11 @@ EOF
continue
;;
+ -nodefaultlibs | -nostartfiles | -nostdlib )
+ compiler_flags="$compiler_flags $arg"
+ continue
+ ;;
+
-objectlist)
prev=objectlist
continue