Update of /cvsroot/boost/boost/tools/build/v2/tools
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv5797

Modified Files:
        python.jam 
Log Message:
Fix linking of libboost_python on Mac OS X

Index: python.jam
===================================================================
RCS file: /cvsroot/boost/boost/tools/build/v2/tools/python.jam,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- python.jam  19 Sep 2006 13:54:57 -0000      1.38
+++ python.jam  24 Sep 2006 12:36:22 -0000      1.39
@@ -363,19 +363,20 @@
     }
     PYTHON_FRAMEWORK = $(PYTHON_FRAMEWORK:D)/Python ;
 
-    alias python_for_extensions
-      : 
-      :
-      : 
-      : <include>$(includes)
-      ;  
-    
     alias python
       :
       : <os>MACOSX <toolset>darwin
       :
       : <include>$(includes) <framework>$(PYTHON_FRAMEWORK)
       ;  
+
+    # Unlike most *nix systems, Mac OS X's linker does not permit undefined
+    # symbols when linking a shared library. So, we still need to link
+    # against the Python framework, even when building extensions. 
+    # Note that framework builds of Python always use shared libraries,
+    # so we do not need to worry about duplicate Python symbols.
+    .alias-defined = true ;
+    alias python_for_extensions : python ;
 }
 
 rule init-nt ( version : root ? : includes ? : libraries ? : cygwin-condition 
? )


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to