]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltmain.in: Allow some compiler/linker flags through unchecked.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Mon, 29 Nov 2004 16:55:35 +0000 (16:55 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Mon, 29 Nov 2004 16:55:35 +0000 (16:55 +0000)
Backport of patch `2004-09-14 Albert Chin-A-Young' from branch-2-0.

ChangeLog
ltmain.in

index ad3056b90e468e049b8d30eec5c461594896fcc2..41608f4c534bd3b4cd2a47507d2de4fe74fec2f5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-11-29   Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+       * ltmain.in: Allow some compiler/linker flags through unchecked.
+       Backport of patch `2004-09-14 Albert Chin-A-Young' from branch-2-0.
+
 2004-11-24  Jeff Squyres <jsquyres@lam-mpi.org>
 
        * libtool.m4 [linux] (AC_LIBTOOL_LANG_CXX_CONFIG,
index 7821cdd5d25ab167aca246fdd8a186ad8cf3cb79..aa93f12d2e89290fb08019c0d71b42e403c29df7 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -1497,13 +1497,13 @@ EOF
        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"`