[C++-sig] Patch to build release 1.33.1 with g++ on AIX

J. Michael Owen mikeowen at llnl.gov
Wed Dec 14 19:46:57 CET 2005


In order to build Boost.Python (most of boost actually) with g++ on  
AIX, it is necessary to patch tools/build/v1/gcc-tools.jam, adding some  
additional LINKFLAGS .  Here is the patch that I find works:

@@ -144,6 +144,11 @@
          {
          # gcc on HP-UX does not support multi-threading, don't set  
anything here
          }
+    case AIX :
+        {
+        flags gcc LINKFLAGS : -lpthreads -Wl,-bexpall -Wl,-G -Wl,-brtl  
;
+        # there is no -lrt on AIX?
+        }
      case QNX* :
          {
          # gcc/QCC on QNX is always? in multi-thread mode, don't set  
anything here

I have verified this works on AIX 5.2 using g++ 3.4.3.  I don't have to  
generate the crazy AIX import/export files anymore with the above set  
off magic linker flags, but you have to make sure and build your own  
Python extension shared libraries with the "-shared -Wl,-G -Wl,-brtl"   
flags as well.

Just in case anyone else out there needs to do this...

Mike.

  "Hey...where are the sunflower seeds?" |       J. Michael Owen
         o_o /                           |
         (")                             |
        \/'\/                            |
____(__(,_,)____________________________________________________________ 
___
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 1310 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20051214/aee9b98a/attachment.bin>


More information about the Cplusplus-sig mailing list