tnintemann / rpms / boost

Forked from rpms/boost 3 years ago
Clone

Blame SOURCES/boost-1.66.0-python-abi_letters.patch

f4a353
--- boost_1_57_0/tools/build/src/tools/python.jam	2013-05-21 06:14:18.000000000 +0200
f4a353
+++ boost_1_55_0/tools/build/src/tools/python.jam	2014-05-29 19:09:12.115413877 +0200
f4a353
@@ -94,7 +94,7 @@ feature.feature pythonpath : : free opti
f4a353
 #   using python : 2.3 : /usr/local/bin/python ;
f4a353
 #
f4a353
 rule init ( version ? : cmd-or-prefix ? : includes * : libraries ?
f4a353
-    : condition * : extension-suffix ? )
f4a353
+    : condition * : extension-suffix ? : abi-letters ? )
f4a353
 {
f4a353
     project.push-current $(.project) ;
f4a353
 
f4a353
@@ -107,7 +107,7 @@ rule init ( version ? : cmd-or-prefix ? 
f4a353
         }
f4a353
     }
f4a353
 
f4a353
-    configure $(version) : $(cmd-or-prefix) : $(includes) : $(libraries) : $(condition) : $(extension-suffix) ;
f4a353
+    configure $(version) : $(cmd-or-prefix) : $(includes) : $(libraries) : $(condition) : $(extension-suffix) : $(abi-letters) ;
f4a353
 
f4a353
     project.pop-current ;
f4a353
 }
f4a353
@@ -653,7 +653,7 @@ local rule system-library-dependencies (
f4a353
 
f4a353
 # Declare a target to represent Python's library.
f4a353
 #
f4a353
-local rule declare-libpython-target ( version ? : requirements * )
f4a353
+local rule declare-libpython-target ( version ? : requirements * : abi-letters ? )
f4a353
 {
f4a353
     # Compute the representation of Python version in the name of Python's
f4a353
     # library file.
f4a353
@@ -677,13 +677,13 @@ local rule declare-libpython-target ( ve
f4a353
     }
f4a353
 
f4a353
     # Declare it.
f4a353
-    lib python.lib : : <name>python$(lib-version) $(requirements) ;
f4a353
+    lib python.lib : : <name>python$(lib-version)$(abi-letters) $(requirements) ;
f4a353
 }
f4a353
 
f4a353
 
f4a353
 # Implementation of init.
f4a353
 local rule configure ( version ? : cmd-or-prefix ? : includes * : libraries ? :
f4a353
-    condition * : extension-suffix ? )
f4a353
+    condition * : extension-suffix ? : abi-letters ? )
f4a353
 {
f4a353
     local prefix ;
f4a353
     local exec-prefix ;
f4a353
@@ -699,6 +699,7 @@ local rule configure ( version ? : cmd-o
f4a353
         extension-suffix ?= _d ;
f4a353
     }
f4a353
     extension-suffix ?= "" ;
f4a353
+    abi-letters ?= "" ;
f4a353
 
f4a353
     local cmds-to-try ;
f4a353
f4a353
@@ -922,7 +923,7 @@ local rule configure ( version ? : cmd-o
f4a353
     }
f4a353
     else
f4a353
     {
f4a353
-        declare-libpython-target $(version) : $(target-requirements) ;
f4a353
+        declare-libpython-target $(version) : $(target-requirements) : $(abi-letters) ;
f4a353
 
f4a353
         # This is an evil hack.  On, Windows, when Python is embedded, nothing
f4a353
         # seems to set up sys.path to include Python's standard library