libtool-patches
[Top][All Lists]
Advanced

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

allow link switches through (1.5 backport)


From: Ralf Wildenhues
Subject: allow link switches through (1.5 backport)
Date: Mon, 29 Nov 2004 12:10:50 +0100
User-agent: Mutt/1.4.1i

I'm trying to backport the changes to let through some switches to the
linker unchanged, after receiving bug reports about this.  Now I'm not
too firm with all branch-1-5 vs branch-2-0 differences, thus I can't
tell for sure whether this patch is sufficient.

Can somebody take a look at this?

Regards,
Ralf

       * ltmain.in: Allow some compiler/linker flags through unchecked.
        Backport from branch-2-0.

Index: ltmain.in
===================================================================
RCS file: /cvsroot/libtool/libtool/Attic/ltmain.in,v
retrieving revision 1.334.2.39
diff -u -r1.334.2.39 ltmain.in
--- ltmain.in   26 Oct 2004 17:21:30 -0000      1.334.2.39
+++ ltmain.in   27 Nov 2004 15:02:42 -0000
@@ -1497,13 +1497,13 @@
        continue
        ;;

-      # gcc -m* arguments should be passed to the linker via $compiler_flags
-      # in order to pass architecture information to the linker
-      # (e.g. 32 vs 64-bit).  This may also be accomplished via -Wl,-mfoo
-      # but this is not reliable with gcc because gcc may use -mfoo to
-      # select a different linker, different libraries, etc, while
-      # -Wl,-mfoo simply passes -mfoo to the linker.
-      -m*)
+      # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
+      # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
+      # +DA*, +DD* enable 64-bit mode on the HP compiler
+      # -q* pass through compiler args for the IBM compiler
+      # -m* pass through architecture-specific compiler args for GCC
+      -64|-mips[[0-9]]|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*)
+
        # Unknown arguments in both finalize_command and compile_command need
        # to be aesthetically quoted because they are evaled later.
        arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`




reply via email to

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