mirror of
https://github.com/boostorg/build.git
synced 2026-02-20 14:42:14 +00:00
Add back in using all the generated lib targets for Windows/GCC so resolve ticket #1025.
[SVN r37930]
This commit is contained in:
@@ -434,23 +434,7 @@ class gcc-linking-generator : unix-linking-generator
|
||||
local generated-targets = [ unix-linking-generator.run $(project) $(name)
|
||||
: $(property-set) : $(sources) ] ;
|
||||
|
||||
# If more than one target was generated, throw out the
|
||||
# last one, which on windows just leaves the import
|
||||
# library. Most generators on windows simply don't accept
|
||||
# shared libraries as input, but being able to link
|
||||
# directly to a shared library without an import library
|
||||
# is an important capability of GCC. Therefore, we remove
|
||||
# the target after the action sees it so that dependent
|
||||
# targets don't try to link to both the import library and
|
||||
# the DLL.
|
||||
if [ $(property-set).get <suppress-import-lib> ] = true
|
||||
{
|
||||
return $(generated-targets[0]) $(generated-targets[-1]) ;
|
||||
}
|
||||
else
|
||||
{
|
||||
return $(generated-targets[1-2]) ;
|
||||
}
|
||||
return $(generated-targets) ;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user