2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-18 14:02:11 +00:00

Realy fix issue #1025.

[SVN r37974]
This commit is contained in:
Rene Rivera
2007-06-12 04:47:49 +00:00
parent 20f268aee2
commit 796100941f

View File

@@ -439,20 +439,34 @@ class gcc-linking-generator : unix-linking-generator
}
}
generators.register [ new gcc-linking-generator gcc.link : LIB OBJ : EXE
: <toolset>gcc ] ;
.IMPLIB-COMMAND = ;
.IMPLIB-TYPE = ;
if [ os.on-windows ]
{
.IMPLIB-COMMAND = "-Wl,--out-implib," ;
.IMPLIB-TYPE = IMPORT_LIB ;
generators.register
[ new gcc-linking-generator gcc.link
: OBJ SEARCHED_LIB STATIC_LIB IMPORT_LIB
: EXE
: <toolset>gcc ] ;
generators.register
[ new gcc-linking-generator gcc.link.dll
: OBJ SEARCHED_LIB STATIC_LIB IMPORT_LIB
: IMPORT_LIB SHARED_LIB
: <toolset>gcc ] ;
}
else
{
generators.register
[ new gcc-linking-generator gcc.link
: LIB OBJ
: EXE
: <toolset>gcc ] ;
generators.register
[ new gcc-linking-generator gcc.link.dll
: LIB OBJ
: SHARED_LIB
: <toolset>gcc ] ;
}
generators.register
[ new gcc-linking-generator gcc.link.dll : LIB OBJ : $(.IMPLIB-TYPE) SHARED_LIB
: <toolset>gcc ] ;
# Declare flags for linking
# First, the common flags