Merge pull request #200770 from lopsided98/boost-python-cross

boost: enable cross-compiling Boost.Python

authored by

Jörg Thalheim and committed by
GitHub
231da8ef 5e9519e3

+10 -2
+10 -2
pkgs/development/libraries/boost/generic.nix
··· 207 207 <ranlib>$RANLIB 208 208 ; 209 209 EOF 210 + '' 211 + # b2 needs to be explicitly told how to find Python when cross-compiling 212 + + optionalString enablePython '' 213 + cat << EOF >> user-config.jam 214 + using python : : ${python.interpreter} 215 + : ${python}/include/python${python.pythonVersion} 216 + : ${python}/lib 217 + ; 218 + EOF 210 219 ''; 211 220 212 221 NIX_CFLAGS_LINK = lib.optionalString stdenv.isDarwin ··· 229 238 "--includedir=$(dev)/include" 230 239 "--libdir=$(out)/lib" 231 240 "--with-bjam=b2" # prevent bootstrapping b2 in configurePhase 232 - ] ++ optional enablePython "--with-python=${python.interpreter}" 233 - ++ optional (toolset != null) "--with-toolset=${toolset}" 241 + ] ++ optional (toolset != null) "--with-toolset=${toolset}" 234 242 ++ [ (if stdenv.hostPlatform == stdenv.buildPlatform then "--with-icu=${icu.dev}" else "--without-icu") ]; 235 243 236 244 buildPhase = ''