libtool-patches
[Top][All Lists]
Advanced

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

allow some more compiler flags through


From: Ralf Wildenhues
Subject: allow some more compiler flags through
Date: Fri, 16 Sep 2005 18:16:59 +0200
User-agent: Mutt/1.4.1i

Andrés Moré stumbled[1] over some gcc ABI flags libtool eats.
OK to commit the patch below to HEAD and branch-1-5 (minus a couple of
m4 quotes there)?

On a related note, `-pg' should be handled better as well, noted by Tor
Lillqvist[2].  One issue here is that it changes predep_objects,
postdep_objects, and possibly postdeps, I guess, so it should be
specified during configure already.  Probably a treatment similar to
`-pthread' in CVS HEAD could be beneficial.  OTOH, we might be
penalizing some legitimate use again here.  

Thoughts?

Cheers,
Ralf

[1] http://lists.gnu.org/archive/html/autoconf/2005-09/msg00030.html
[2] http://thread.gmane.org/gmane.comp.gnu.mingw.user/17361

        * libltdl/config/ltmain.m4sh (func_mode_link): Allow some
        ARM gcc ABI flags through.
        Reported by Andrés Moré <address@hidden>.

Index: libltdl/config/ltmain.m4sh
===================================================================
RCS file: /cvsroot/libtool/libtool/libltdl/config/ltmain.m4sh,v
retrieving revision 1.7
diff -u -r1.7 ltmain.m4sh
--- libltdl/config/ltmain.m4sh  13 Sep 2005 07:28:14 -0000      1.7
+++ libltdl/config/ltmain.m4sh  16 Sep 2005 16:05:36 -0000
@@ -2814,8 +2814,10 @@
       # -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]]|-r[[0-9]][[0-9]]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*)
+      # -m*, -t[45]*, -txscale* pass through architecture-specific
+      # compiler args for GCC
+      
-64|-mips[[0-9]]|-r[[0-9]][[0-9]]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
+      -t[[45]]*|-txscale*)
         func_quote_for_eval "$arg"
        arg="$func_quote_for_eval_result"
         compile_command="$compile_command $arg"




reply via email to

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