Ticket #583: tools-build-v2-tools-python_jam.patch

File tools-build-v2-tools-python_jam.patch, 1.1 KB (added by Thomas Witt, 15 years ago)
  • tools/build/v2/tools/python.jam

    diff -ru boost_1_34_0/tools/build/v2/tools/python.jam boost_1_34_0_ibm/tools/build/v2/tools/python.jam
    old new  
    626626
    627627        case hpux : return  <library>rt ;
    628628
     629        case aix : return  <library>pthread <library>dl ;
     630
    629631        case * : return  <library>pthread <library>dl <toolset>gcc:<library>util ;
    630632    }
    631633}
     
    926928    {
    927929        alias python_for_extensions : python : $(target-requirements) ;
    928930    }
     931    # On AIX we need Python extensions and Boost.Python to import symbols
     932    # from the Python interpreter. Dynamic libraries opened with dlopen()
     933    # do not inherit the symbols from the Python interpreter.
     934    else if $(target-os) = aix
     935    {
     936        alias python_for_extensions
     937                     :
     938                     : $(target-requirements)
     939                     :
     940                     : $(usage-requirements) <linkflags>-Wl,-bI:$(libraries[1])/python.exp
     941                     ;
     942    }
    929943    else
    930944    {
    931945        alias python_for_extensions