lucene-pylucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Janssen <jans...@parc.com>
Subject Re: mingw /implib:foo.lib equivalent ?
Date Mon, 24 May 2010 12:42:05 GMT
Andi Vajda <vajda@apache.org> 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:

*** 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

Mime
View raw message