logo       

CVS: boost/tools/build/v2/tools python.jam,1.39,1.40: msg#00757

Subject: CVS: boost/tools/build/v2/tools python.jam,1.39,1.40
Update of /cvsroot/boost/boost/tools/build/v2/tools
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv7587

Modified Files:
        python.jam 
Log Message:
Attempt to get tests linking on OSF again by adding missing -lz.
Strip out loads of detritus.


Index: python.jam
===================================================================
RCS file: /cvsroot/boost/boost/tools/build/v2/tools/python.jam,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- python.jam  24 Sep 2006 12:36:22 -0000      1.39
+++ python.jam  28 Sep 2006 17:13:35 -0000      1.40
@@ -21,9 +21,6 @@
 #   SHARED_LIB, not PYTHON_EXTENSION. That's because we reuse 
 #   'lib-target-class', which creates SHARED_LIB explicitly.
 
-
-
-
 import type ;
 import testing ;
 import generators ;
@@ -235,7 +232,7 @@
     }   
 
 
-    local extra-libs ;
+    local extra-libs extra-libs-conditional ;
 
     # Depending on system, Python library is either static
     # or shared. When it's static, we need to add 'pthread'
@@ -247,30 +244,30 @@
     # affected by threading mode.
     switch [ os.name ]
     {
-        case SOLARIS : extra-libs = pthread dl      ;
-        case OSF :     extra-libs = pthread         ;
-        case QNX* :    extra-libs =                 ;
-        case * :       extra-libs = pthread dl util ;
-    }
-    
-    extra-libs-conditional = ;
-    # Add 'rt' option on Sun. While we duplicate the
-    # logic already in sun.jam and gcc.jam, I see no easy
-    # way to refactor it.
-    # Note that for 'sun' toolset, rt is already unconditionally
-    # added.
-
-    # (MS) Question: Why not [ os.name ] in the next statement?
-    switch [ modules.peek : JAMUNAME ]
-    {
-        case SunOS* :
+        case SOLARIS :
         {
-            extra-libs-conditional += <toolset>gcc:<source>rt ;
+            extra-libs = pthread dl ;
+            
+            # Add 'rt' option on Sun. While we duplicate the
+            # logic already in sun.jam and gcc.jam, I see no easy
+            # way to refactor it -- Volodya.
+            # Note that for 'sun' toolset, rt is already unconditionally
+            # added.
+            extra-libs-conditional = <toolset>gcc:<source>rt ;
         }
-        case OSF* :
+        
+        case OSF :     
         {
-            extra-libs-conditional += <toolset>gcc:<source>rt ;
+            extra-libs = pthread z ;
+            extra-libs-conditional = <toolset>gcc:<source>rt ;
+        }
+        
+        case QNX* :    
+        {
+            extra-libs =                 ;
         }
+        
+        case * :       extra-libs = pthread dl util ;
     }
     
     if ! [ os.on-windows ]
@@ -298,29 +295,6 @@
                    <library-path>$(libraries)
                    <find-shared-library>python$(version)
                  ;
-    
-             
-    # NOTES:
-    # - V1 had logic to force intel to use gcc's runtime.
-    #   Note sure why that was needed, with icc 8.0 extensions
-    #   built with intel are loaded by python without problems.
-    # - There was 'python-static-multithread' logic. Don't know
-    #   what it affected, so can't test.
-    
-    # TODO: need to figure out when the following code is needed:
-    # for builtin extensions only or in some other cases too.
-
-    
-    #    if [ modules.peek $(OS) ] = OSF
-    #    {
-    #        PYTHON_PROPERTIES += <*><*><linkflags>"-expect_unresolved 'Py*' 
-expect_unresolved '_Py*'" ;
-    #    }
-    #    else if [ modules.peek $(OS) ] = AIX
-    #    {
-    #        PYTHON_PROPERTIES 
-    #          += <*><*><linkflags>"-Wl,-bI:$(PYTHON_LIB_PATH)/python.exp"
-    #            <*><*><find-library>pthreads ;
-    #    }
 }
 
 rule init-mac ( version : root ? : includes ? : libraries ? )
@@ -381,14 +355,6 @@
 
 rule init-nt ( version : root ? : includes ? : libraries ? : cygwin-condition 
? )
 {
-#    PYTHON_PROPERTIES =
-#      boost-python-disable-borland
-#      select-nt-python-includes
-#      <runtime-link>dynamic
-#      <sysinclude>@boost
-#      <$(gcc-compilers)><*><define>USE_DL_IMPORT
-#      ;
-
     if ! $(cygwin-condition)
     {        
         root ?= c:/tools/python ;
@@ -428,21 +394,6 @@
         flags python.capture-output PYTHON : $(interpreter) ;
 
                 
-        # This is mingw-specific V1 code. I don't yet understand
-        # why mingw must be specially-cased.
-        #local lib = $(PYTHON_IMPORT_LIB) ;
-        #if <define>BOOST_DEBUG_PYTHON in $(properties)
-        #{
-        #    lib = $(PYTHON_DEBUG_IMPORT_LIB) ;
-        #}
-        #lib ?= $(PYTHON_DLL) ;
-        #if <define>BOOST_DEBUG_PYTHON in $(properties)
-        #{
-        #    lib ?= $(PYTHON_DEBUG_DLL) ;
-        #}
-        #properties += <library-file>$(lib) ;
-        #}
-        
         properties += <library-path>$(PYTHON_LIB_PATH) ;
             
         # msvc compilers auto-find the python library
@@ -457,11 +408,6 @@
           ;
                        
         local lib = python$(PYTHON_VERSION_NODOT) ;
-        # TODO: don't support BOOST_DEBUG_PYTHON yet.        
-        #    if <define>BOOST_DEBUG_PYTHON in $(properties)
-        #    {
-        #            lib = python$(PYTHON_VERSION_NODOT)_d ;
-        #    }
         
         alias python
           :
@@ -490,19 +436,12 @@
         CYGWIN_PYTHON_DEBUG_LIB_PATH ?= 
$(CYGWIN_PYTHON_DEBUG_ROOT)/lib/python$(CYGWIN_PYTHON_DEBUG_VERSION)/config ;   
     
         
         local properties ;
-        # TODO: don't support BOOST_DEBUG_PYTHON yet.                
-        #if <define>BOOST_DEBUG_PYTHON in $(properties)
-        #{
-        #    properties += <library-path>$(CYGWIN_PYTHON_DEBUG_LIB_PATH) 
<find-library>python$(CYGWIN_PYTHON_DEBUG_VERSION).dll ;
-        #}
-        #else
-        #{
+
         properties += <library-path>$(CYGWIN_PYTHON_LIB_PATH) 
                       <find-shared-library>python$(CYGWIN_PYTHON_VERSION).dll ;
         
         properties += <include>$(root)/include/python$(version) ;          
           
-        #}
         alias python
           :
           : $(cygwin-condition)
@@ -535,35 +474,7 @@
                         usage-requirements * )
 {
     requirements += <use>/python//python_for_extensions ;
-        
-    # TODO: handle the following V1 code
-    #if $(OS) = MACOSX && $(toolset) = darwin
-    #{
-    #    if <target-type>PYD in $(properties)
-    #    {
-    #        properties += <link-format>bundle ;
-    #    }
-    #    properties += <framework>$(PYTHON_FRAMEWORK) ;
-    #}    
-               
-#        <metrowerks><*><cxxflags>"-inline deferred" 
-#      <cwpro8><*><cxxflags>"-inline deferred"  # added for internal testing 
purposes
-#        <cxx><*><sysinclude>@boost/boost/compatibility/cpp_c_headers
-#         <define>BOOST_PYTHON_DYNAMIC_LIB
-    
-    
-#    PYTHON_PROPERTIES += 
-#        <sysinclude>@boost
-#          <stlport-iostream>on
-#            select-python-library
-    
-#      boost-python-disable-borland
-#      select-nt-python-includes
-#      <runtime-link>dynamic
-#      <sysinclude>@boost
-#      <$(gcc-compilers)><*><define>USE_DL_IMPORT
-#          <sysinclude>$(PYTHON_INCLUDES)
-            
+                    
     local project = [ project.current ] ;
 
     


-------------------------------------------------------------------------
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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
linux.arklinux....    user-groups.lin...    kde.usability/2...    ietf.ipp/2002-0...    mail.spam.spamc...    os.netbsd.devel...    audio.cd-record...    text.unicode.de...    php.documentati...    games.fps.halfl...    window-managers...    suse.oracle.gen...    bug-tracking.gn...    video.dvdrip.us...    xfree86.cvs/200...    java.netbeans.m...    network.argus/2...    culture.sf.kill...    debian.ports.al...    freebsd.questio...    qplus.devel/200...    handhelds.palm....   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe