Ticket #1025: gcc.jam.2.patch

File gcc.jam.2.patch, 1.6 KB (added by René Rivera, 15 years ago)

Additional fix the bring back Dave's functionality. But in the same form as for all the other Windows toolsets.

  • tools/build/v2/tools/gcc.jam

    RCS file: /cvsroot/boost/boost/tools/build/v2/tools/gcc.jam,v
    retrieving revision 1.63.2.23
    diff -u -r1.63.2.23 gcc.jam
     
    439439    }
    440440}
    441441
    442 generators.register [ new gcc-linking-generator gcc.link : LIB OBJ : EXE
    443     : <toolset>gcc ] ;
    444 
    445442.IMPLIB-COMMAND = ;
    446 .IMPLIB-TYPE = ;
    447443if [ os.on-windows ]
    448444{
    449445    .IMPLIB-COMMAND = "-Wl,--out-implib," ;
    450     .IMPLIB-TYPE = IMPORT_LIB ;
     446    generators.register
     447        [ new gcc-linking-generator gcc.link
     448            : OBJ SEARCHED_LIB STATIC_LIB IMPORT_LIB
     449            : EXE
     450            : <toolset>gcc ] ;
     451    generators.register
     452        [ new gcc-linking-generator gcc.link.dll
     453            : OBJ SEARCHED_LIB STATIC_LIB IMPORT_LIB
     454            : IMPORT_LIB SHARED_LIB
     455            : <toolset>gcc ] ;
     456}
     457else
     458{
     459    generators.register
     460        [ new gcc-linking-generator gcc.link
     461            : LIB OBJ
     462            : EXE
     463            : <toolset>gcc ] ;
     464    generators.register
     465        [ new gcc-linking-generator gcc.link.dll
     466            : LIB OBJ
     467            : SHARED_LIB
     468            : <toolset>gcc ] ;
    451469}
    452470
    453 generators.register
    454   [ new gcc-linking-generator gcc.link.dll : LIB OBJ : $(.IMPLIB-TYPE) SHARED_LIB
    455     : <toolset>gcc ] ;
    456 
    457471# Declare flags for linking
    458472# First, the common flags
    459473flags gcc.link OPTIONS <debug-symbols>on : -g ;