Index: tools/build/v2/tools/gcc.jam =================================================================== RCS file: /cvsroot/boost/boost/tools/build/v2/tools/gcc.jam,v retrieving revision 1.63.2.22 diff -u -r1.63.2.22 gcc.jam --- tools/build/v2/tools/gcc.jam 3 May 2007 06:09:04 -0000 1.63.2.22 +++ tools/build/v2/tools/gcc.jam 1 Jun 2007 19:45:27 -0000 @@ -434,23 +434,7 @@ 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 ] = true - { - return $(generated-targets[0]) $(generated-targets[-1]) ; - } - else - { - return $(generated-targets[1-2]) ; - } + return $(generated-targets) ; } } }