* Ralf Wildenhues wrote on Tue, Sep 07, 2010 at 10:20:06PM CEST:
> * Peter Rosin wrote on Tue, Sep 07, 2010 at 11:25:00AM CEST:
> > Subject: [PATCH] Adjust naming of MSVC import libraries.
> > 
> > * libltdl/m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER) [mingw, cygwin]
> > [pw32, cegcc] <cl*, library_names_spec>: Adjust naming of the
> > import library from foo-<major-version>.lib to foo.dll.lib, to
> > avoid clashes with the static library for unversioned libraries.
> > (_LT_LINKER_SHLIBS, _LT_LANG_CXX_CONFIG) [mingw, cygwin, pw32]
> > [cegcc] <cl*, archive_expsym_cmds>: Explicitely name the import
> > library to match the above.
> 
> Thanks for pushing this.  I think it deserves to be mentioned in NEWS,
> even if MSVC wasn't supported (well) before.

OK, thinking about it for 5 seconds longer, here's a different idea
altogether:

why not by default disable static libraries when shared ones are
enabled?  We do this on AIX too.  And then avoid the renaming.
(and if --enable-static is given, disable shared)

Rationale: you don't, and can't, and won't, be able to require other
tools to use the 'compile' script.  And you do want to be compatible
with what MSVC does by default anyway.  And you don't want to implement
a search algorithm in the compile script either.

Just a thought from somebody feeling pushed by the 72 hour rule.

Cheers,
Ralf

Reply via email to