X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Message-ID: <4A7E7628.10105@users.sourceforge.net> Date: Sun, 09 Aug 2009 02:09:28 -0500 From: "Yaakov (Cygwin/X)" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.1) Gecko/20090715 Thunderbird/3.0b3 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: libtool: -{shared,static}-libgcc Content-Type: multipart/mixed; boundary="------------090205030002040705030407" Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com --------------090205030002040705030407 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 --------------090205030002040705030407 Content-Type: text/plain; name="2.2.7a-shared-libgcc.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="2.2.7a-shared-libgcc.patch" 2009-08-09 Yaakov Selkowitz * 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" --------------090205030002040705030407 Content-Type: text/plain; charset=us-ascii -- 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 --------------090205030002040705030407--