Ticket #2843: vacpp-aix-noipath.patch

File vacpp-aix-noipath.patch, 1.3 KB (added by Etienne PIERRE, 14 years ago)

Patch to add -bnoipath to the linker command

  • tools/build/v2/tools/vacpp.jam

    diff -Naur ../boost_1_38_0.orig/tools/build/v2/tools/vacpp.jam ./tools/build/v2/tools/vacpp.jam
    old new  
    7575    flags vacpp.compile C++FLAGS : -qfuncsect ;
    7676    flags vacpp.link LINKFLAGS <link>static : -qtwolink ;
    7777
     78
     79    # The -bnoipath strips the prepending (relative) path of libraries from
     80    # the loader section in the target library or executable. Hence, during
     81    # load-time LIBPATH (identical to LD_LIBRARY_PATH) or a hard-coded
     82    # -blibpath (*similar* to -lrpath/-lrpath-link) is searched. Without
     83    # this option, the prepending (relative) path + library name is
     84    # hard-coded in the loader section, causing *only* this path to be
     85    # searched during load-time. Note that the AIX linker does not have an
     86    # -soname equivalent, this is as close as it gets.
     87    #
     88    # The above options are definately for AIX 5.x, and most likely also for
     89    # AIX 4.x and AIX 6.x. For details about the AIX linker see:
     90    # http://download.boulder.ibm.com/ibmdl/pub/software/dw/aix/es-aix_ll.pdf
     91    #
     92    flags vacpp.link LINKFLAGS <link>shared : -bnoipath ;
     93
    7894    # Run-time linking
    7995    flags vacpp.link EXE-LINKFLAGS <link>shared : -brtl -qtwolink ;
    8096}