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
|
|
|
|
| 434 | 434 | local generated-targets = [ unix-linking-generator.run $(project) $(name) |
| 435 | 435 | : $(property-set) : $(sources) ] ; |
| 436 | 436 | |
| 437 | | # If more than one target was generated, throw out the |
| 438 | | # last one, which on windows just leaves the import |
| 439 | | # library. Most generators on windows simply don't accept |
| 440 | | # shared libraries as input, but being able to link |
| 441 | | # directly to a shared library without an import library |
| 442 | | # is an important capability of GCC. Therefore, we remove |
| 443 | | # the target after the action sees it so that dependent |
| 444 | | # targets don't try to link to both the import library and |
| 445 | | # the DLL. |
| 446 | | if [ $(property-set).get <suppress-import-lib> ] = true |
| 447 | | { |
| 448 | | return $(generated-targets[0]) $(generated-targets[-1]) ; |
| 449 | | } |
| 450 | | else |
| 451 | | { |
| 452 | | return $(generated-targets[1-2]) ; |
| 453 | | } |
| | 437 | return $(generated-targets) ; |
| 454 | 438 | } |
| 455 | 439 | } |
| 456 | 440 | } |