Return-Path: Delivered-To: apmail-lucene-pylucene-dev-archive@minotaur.apache.org Received: (qmail 23943 invoked from network); 24 May 2010 19:56:31 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 May 2010 19:56:31 -0000 Received: (qmail 44318 invoked by uid 500); 24 May 2010 19:56:31 -0000 Delivered-To: apmail-lucene-pylucene-dev-archive@lucene.apache.org Received: (qmail 44298 invoked by uid 500); 24 May 2010 19:56:31 -0000 Mailing-List: contact pylucene-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: pylucene-dev@lucene.apache.org Delivered-To: mailing list pylucene-dev@lucene.apache.org Received: (qmail 44290 invoked by uid 99); 24 May 2010 19:56:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 May 2010 19:56:31 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [66.159.224.220] (HELO ovaltofu.org) (66.159.224.220) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 May 2010 19:56:24 +0000 Received: from [192.168.0.4] ([192.168.0.4]) (authenticated bits=0) by ovaltofu.org (8.14.3/8.14.4) with ESMTP id o4OJtwcv015118 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 24 May 2010 12:56:00 -0700 (PDT) Date: Mon, 24 May 2010 12:57:47 -0700 (PDT) From: Andi Vajda X-X-Sender: vajda@yuzu.local Reply-To: Andi Vajda To: pylucene-dev@lucene.apache.org Subject: Re: mingw /implib:foo.lib equivalent ? In-Reply-To: <83186.1274730125@parc.com> Message-ID: References: <83186.1274730125@parc.com> User-Agent: Alpine 2.01 (OSX 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Checked: Checked by ClamAV on apache.org On Mon, 24 May 2010, Bill Janssen wrote: > Andi Vajda wrote: > >> Hi Bill, >> >> Would you know what the equivalent mingw gcc flag for MSVC's >> /implib:foo.lib flag is ? >> This overrides the default name and location that the linker uses to >> produce a DLLs' import library. >> >> I added some linking tricks on Windows and Linux for supporting the >> new --import funtionality and it seems that hardcoding /implib: is not >> going to work well on mingw or will it ? > > Right. > > Here's the patch I use (for JCC 2.9.1) on mingw: Thanks ! Andi.. > > *** setup.py 2009-10-28 15:24:16.000000000 -0700 > --- setup.py 2010-03-29 22:08:56.000000000 -0700 > *************** > *** 262,268 **** > elif platform == 'win32': > jcclib = 'jcc%s.lib' %(debug and '_d' or '') > kwds["extra_link_args"] = \ > ! lflags + ["/IMPLIB:%s" %(os.path.join('jcc', jcclib))] > package_data.append(jcclib) > else: > kwds["extra_link_args"] = lflags > --- 262,268 ---- > elif platform == 'win32': > jcclib = 'jcc%s.lib' %(debug and '_d' or '') > kwds["extra_link_args"] = \ > ! lflags + ["-Wl,--out-implib,%s" %(os.path.join('jcc', jcclib))] > package_data.append(jcclib) > else: > kwds["extra_link_args"] = lflags > > Bill >