gentoo/dev-libs/boost/files/boost-1.48.0-no_strict_aliasing_python2.patch
Danny Robson 01f1094931 Add initial support for *-mingw* CHOST
This is a direct copy of the Gentoo boost-1.53.0 ebuild, with only minor
differences to support mingw targets.

* specify target-os in bjam options
* disable builds with threads and shared linking due to unresolved
  linking errors.
2013-08-01 17:52:02 +10:00

24 lines
741 B
Diff

--- libs/python/build/Jamfile.v2
+++ libs/python/build/Jamfile.v2
@@ -85,6 +85,12 @@
rule lib_boost_python ( is-py3 ? )
{
+ local python_major_version = [ MATCH "^([^.]+)" : [ feature.values python ] ] ;
+ local python2 ;
+ if $(python_major_version) = 2
+ {
+ python2 = true ;
+ }
lib [ cond $(is-py3) : boost_python3 : boost_python ]
: # sources
numeric.cpp
@@ -119,6 +125,7 @@
: # requirements
<link>static:<define>BOOST_PYTHON_STATIC_LIB
<define>BOOST_PYTHON_SOURCE
+ [ cond $(python2) : <cxxflags>-fno-strict-aliasing ]
# On Windows, all code using Python has to link to the Python
# import library.