Chuck,

While reviewing the libtool-patches list I came across a discussion[1] about compiler option support that gave me an idea.

The attached patch (against the latest 2.2.7a snapshot, not taking the other patch into account) should allow libtool to accept the -{shared,static}-libgcc flags and just pass them on to gcc.

Thoughts?


Yaakov

[1] http://lists.gnu.org/archive/html/libtool-patches/2009-06/msg00023.html
2009-08-09  Yaakov Selkowitz <yselkow...@users.sourceforge.net>

        * libltdl/config/ltmain.m4sh (func_mode_link): Pass the
        -shared-libgcc/-static-libgcc flags along to GCC.

--- origsrc/libtool-2.2.7a/libltdl/config/ltmain.m4sh   2009-08-08 
23:32:27.135450100 -0500
+++ src/libtool-2.2.7a/libltdl/config/ltmain.m4sh       2009-08-08 
23:45:51.012483200 -0500
@@ -4378,8 +4378,10 @@ func_mode_link ()
       # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
       # @file GCC response files
       # -tp=* Portland pgcc target processor selection
+      # -{shared,static}-libgcc: force GCC to link against specified libgcc
       -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
-      -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*)
+      -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*| \
+      -shared-libgcc|-static-libgcc)
         func_quote_for_eval "$arg"
        arg="$func_quote_for_eval_result"
         func_append compile_command " $arg"

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply via email to