libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[patch] 1.5.14: Add GCC-specific linker flags


From: Maciej W. Rozycki
Subject: [patch] 1.5.14: Add GCC-specific linker flags
Date: Mon, 4 Apr 2005 18:09:56 +0100 (BST)

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  <address@hidden>

        * 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]