Ticket #8499: boost_1_53_0-cray.pgi.diff

File boost_1_53_0-cray.pgi.diff, 3.5 KB (added by alan@…, 9 years ago)

pgi.jam improvements

  • boostcpp.jam

    diff -ur boost_1_53_0/boostcpp.jam boost_1_53_0.2/boostcpp.jam
    old new  
    152152        # libFoo.1.2.3.dylib format. AIX linkers do not accept version suffixes
    153153        # either. Pgi compilers can not accept a library with version suffix.
    154154        if $(type) = SHARED_LIB &&
    155           ! [ $(property-set).get <target-os> ] in windows cygwin darwin aix &&
    156           ! [ $(property-set).get <toolset> ] in pgi
     155          ! [ $(property-set).get <target-os> ] in windows cygwin darwin aix
    157156        {
    158157            result = $(result).$(BOOST_VERSION)  ;
    159158        }
  • tools/build/v2/tools/pgi.jam

    diff -ur boost_1_53_0/tools/build/v2/tools/pgi.jam boost_1_53_0.2/tools/build/v2/tools/pgi.jam
    old new  
    1616feature.extend toolset : pgi ;
    1717toolset.inherit pgi : unix ;
    1818generators.override pgi.prebuilt : builtin.lib-generator ;
     19generators.override pgi.prebuilt : builtin.prebuilt ;
    1920generators.override pgi.searched-lib-generator : searched-lib-generator ;
    2021
    2122# Documentation and toolchain description located
     
    117118    SPACE on $(targets) = " " ;
    118119}
    119120
    120 # reddish can only link statically and, somehow, the presence of -Bdynamic on the link line
     121# reddish can only link statically and, somehow, the presence of -Wl,-Bdynamic on the link line
    121122# marks the executable as a dynamically linked exec even though no dynamic libraries are supplied.
    122123# Yod on redstorm refuses to load an executable that is dynamically linked.
    123124# removing the dynamic link options should get us where we need to be on redstorm.
    124 # "$(CONFIG_COMMAND)" $(OPTIONS) -L"$(LINKPATH)" -R"$(RPATH)" -o "$(<)" "$(>)" "$(LIBRARIES)" -Bdynamic -l$(FINDLIBS-SA) -Bstatic -l$(FINDLIBS-ST) -B$(LINK-RUNTIME)
     125# "$(CONFIG_COMMAND)" $(OPTIONS) -L"$(LINKPATH)" -R"$(RPATH)" -o "$(<)" "$(>)" "$(LIBRARIES)" -Wl,-Bdynamic -l$(FINDLIBS-SA) -Wl,-Bstatic -l$(FINDLIBS-ST) -Wl,-B$(LINK-RUNTIME)
    125126actions link bind LIBRARIES
    126127{
    127     "$(CONFIG_COMMAND)" $(OPTIONS) -L"$(LINKPATH)" -R"$(RPATH)" -o "$(<)" "$(>)" "$(LIBRARIES)" -Bstatic -l$(FINDLIBS-ST) -Bdynamic -l$(FINDLIBS-SA) -B$(LINK-RUNTIME)
     128    "$(CONFIG_COMMAND)" $(OPTIONS) -L"$(LINKPATH)" -R"$(RPATH)" -o "$(<)" "$(>)" "$(LIBRARIES)" -Wl,-Bstatic -l$(FINDLIBS-ST) -Wl,-Bdynamic -l$(FINDLIBS-SA) -Wl,-B$(LINK-RUNTIME)
    128129}
    129130
    130131# Slight mods for dlls
     
    133134    SPACE on $(targets) = " " ;
    134135}
    135136
    136 # "$(CONFIG_COMMAND)" $(OPTIONS) -L"$(LINKPATH)" -R"$(RPATH)" -o "$(<)" -h$(<[1]:D=) -G "$(>)" "$(LIBRARIES)" -Bdynamic -l$(FINDLIBS-SA) -Bstatic -l$(FINDLIBS-ST) -B$(LINK-RUNTIME)
     137# "$(CONFIG_COMMAND)" $(OPTIONS) -L"$(LINKPATH)" -R"$(RPATH)" -o "$(<)" -h$(<[1]:D=) -G "$(>)" "$(LIBRARIES)" -Wl,-Bdynamic -l$(FINDLIBS-SA) -Wl,-Bstatic -l$(FINDLIBS-ST) -Wl,-B$(LINK-RUNTIME)
    137138
    138139actions link.dll bind LIBRARIES
    139140{
    140     "$(CONFIG_COMMAND)" $(OPTIONS) -shared -L"$(LINKPATH)" -R"$(RPATH)" -o "$(<)" "$(>)" -Wl,-h -Wl,$(<[1]:D=) "$(LIBRARIES)" -Bdynamic -l$(FINDLIBS-SA) -Bstatic -l$(FINDLIBS-ST) -B$(LINK-RUNTIME)
     141    "$(CONFIG_COMMAND)" $(OPTIONS) -shared -L"$(LINKPATH)" -R"$(RPATH)" -o "$(<[-1])" "$(>)" -Wl,-h -Wl,$(<[1]:D=) "$(LIBRARIES)" -Wl,-Bdynamic -l$(FINDLIBS-SA) -Wl,-Bstatic -l$(FINDLIBS-ST) -Wl,-B$(LINK-RUNTIME)
    141142}
    142143
    143144actions updated together piecemeal pgi.archive