[Scons-users] Building versioned shared library fails when using MinGW

Paweł Tomulik ptomulik at meil.pw.edu.pl
Sun Dec 11 12:28:16 EST 2016


It  may be, that versioned libs are still not implemented for mingw?


https://bitbucket.org/scons/scons/pull-requests/247/new-versioned-libraries-gnulink-cyglink/diff


W dniu 20.11.2016 o 01:56, William Blevins pisze:
> Ray,
> 
> I don't know the exact problem, but 2.4.1 contained a major update to
> how versioned shared libraries were built.
> 
> I know there is a bug fix patch currently unreleased, but I assume your
> issue is different. Probably an issue with platform setup. Here is the
> CHANGES.TXT notes:
> 
>   From Paweł Tomulik:
>     - Fixed the issue with LDMODULEVERSIONFLAGS reported by Tim Jennes
>      
> (https://pairlist4.pair.net/pipermail/scons-users/2016-May/004893.html).
>       An error was causing “-Wl,Bsymbolic” being added to linker's
> command-line
>       even when there was no specified value in LDMODULEVERSION and thus no
>       need for the flags to be specified.
>     - Added LoadableModule to the list of global functions
> (DefaultEnvironment
>       builders).
> 
> V/R,
> William
> 
> On Sat, Nov 19, 2016 at 5:59 PM, Ray Speth <speth at darkmatter.mit.edu
> <mailto:speth at darkmatter.mit.edu>> wrote:
> 
>     Hi,
> 
>     I have encountered an apparent bug when trying to build versioned
>     shared libraries with MinGW. A minimal SConstruct:
> 
>         env = Environment(tools=['mingw'])
>         lib = env.SharedLibrary('foo', ['foo.cpp'], SHLIBVERSION='2.4')
>         env.AlwaysBuild(lib)
> 
>     generates the following output:
> 
>         scons: Reading SConscript files ...
>         scons: *** A shared library should have exactly one target with the
>     suffix: .dll
>         File "path\to\SConstruct", line 2, in <module>
> 
>     I have tested this with SCons 2.4.1, 2.5.0, and 2.5.1, with the same
>     results.
> 
>     Regards,
>     Ray
>     _______________________________________________
>     Scons-users mailing list
>     Scons-users at scons.org <mailto:Scons-users at scons.org>
>     https://pairlist4.pair.net/mailman/listinfo/scons-users
>     <https://pairlist4.pair.net/mailman/listinfo/scons-users>
> 
> 
> 
> 
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
> 


-- 
Pawel Tomulik


More information about the Scons-users mailing list