From 1cbcbc8695ca457a09bb3153681dfd7e7a2e30b4 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Mon, 29 Jun 2015 08:00:15 +0300 Subject: boost from gentoo (version bump) --- .../boost-1.48.0-no_strict_aliasing_python2.patch | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 dev-libs/boost/files/boost-1.48.0-no_strict_aliasing_python2.patch (limited to 'dev-libs/boost/files/boost-1.48.0-no_strict_aliasing_python2.patch') diff --git a/dev-libs/boost/files/boost-1.48.0-no_strict_aliasing_python2.patch b/dev-libs/boost/files/boost-1.48.0-no_strict_aliasing_python2.patch new file mode 100644 index 0000000..89f8109 --- /dev/null +++ b/dev-libs/boost/files/boost-1.48.0-no_strict_aliasing_python2.patch @@ -0,0 +1,23 @@ +--- 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 + static:BOOST_PYTHON_STATIC_LIB + BOOST_PYTHON_SOURCE ++ [ cond $(python2) : -fno-strict-aliasing ] + + # On Windows, all code using Python has to link to the Python + # import library. -- cgit v1.2.3