3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #33393 from bnikolic/boostconfigurepythonfix

Correct boost configure phase when enablePython is false
This commit is contained in:
John Ericson 2018-01-03 17:12:13 -05:00 committed by GitHub
commit 93d3561b57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -125,9 +125,9 @@ stdenv.mkDerivation {
configureFlags = [ configureFlags = [
"--includedir=$(dev)/include" "--includedir=$(dev)/include"
"--libdir=$(out)/lib" "--libdir=$(out)/lib"
(if enablePython then "--with-python=${python.interpreter}" else "--without-python") ] ++ optional enablePython "--with-python=${python.interpreter}"
(if hostPlatform == buildPlatform then "--with-icu=${icu.dev}" else "--without-icu") ++ [ (if hostPlatform == buildPlatform then "--with-icu=${icu.dev}" else "--without-icu") ]
] ++ optional (toolset != null) "--with-toolset=${toolset}"; ++ optional (toolset != null) "--with-toolset=${toolset}";
buildPhase = '' buildPhase = ''
./b2 ${b2Args} ./b2 ${b2Args}