From: Ralf Wildenhues Date: Mon, 29 Nov 2004 16:55:35 +0000 (+0000) Subject: * ltmain.in: Allow some compiler/linker flags through unchecked. X-Git-Tag: release-1-5-12~54 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=41f037a17be2283b32bf341ba431f79316d64176;p=thirdparty%2Flibtool.git * ltmain.in: Allow some compiler/linker flags through unchecked. Backport of patch `2004-09-14 Albert Chin-A-Young' from branch-2-0. --- diff --git a/ChangeLog b/ChangeLog index ad3056b90..41608f4c5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-11-29 Ralf Wildenhues + + * 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 * libtool.m4 [linux] (AC_LIBTOOL_LANG_CXX_CONFIG, diff --git a/ltmain.in b/ltmain.in index 7821cdd5d..aa93f12d2 100644 --- 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"`