--- /opt/boost_1_34_0_src/tools/build/v2/tools/gcc.jam 2007-07-23 11:20:30.093231000 +0200 +++ ./gcc.jam 2007-09-03 15:37:25.004999112 +0200 @@ -44,6 +44,11 @@ type.set-generated-target-suffix OBJ : gcc : o ; type.set-generated-target-suffix STATIC_LIB : gcc : a ; +if [ os.name ] = HPUX +{ + type.set-generated-target-suffix SHARED_LIB : gcc : sl ; +} + type.set-generated-target-suffix IMPORT_LIB : gcc cygwin : dll.a ; type.set-generated-target-suffix IMPORT_LIB : gcc windows : a ; @@ -319,8 +324,6 @@ SONAME_OPTION = -h ; } - - flags gcc.compile USER_OPTIONS ; flags gcc.compile.c++ USER_OPTIONS ; flags gcc.compile DEFINES ; @@ -524,7 +527,13 @@ flags $(toolset).link RPATH_OPTION $(condition) : -rpath : unchecked ; # -rpath-link is not supported at all. } - + + case hpux : + { + flags $(toolset).link OPTIONS $(condition)/off : -Wl,-s + : unchecked ; + flags $(toolset).link RPATH $(condition) : : unchecked ; + } case sun : { @@ -643,8 +652,9 @@ } else if [ modules.peek : UNIX ] { - switch [ modules.peek : JAMUNAME ] - { +# switch [ modules.peek : JAMUNAME ] + switch [ os.name ] + { case SunOS* : { flags gcc OPTIONS multi : -pthreads ; @@ -669,9 +679,10 @@ { # gcc on IRIX does not support multi-threading, don't set anything here. } - case HP_UX : + case HPUX : { - # gcc on HP-UX does not support multi-threading, don't set anything here + flags gcc OPTIONS multi : -pthread -fPIC ; + flags gcc FINDLIBS-SA multi : rt ; } case Darwin : {