vxl: *Flags are lists
This commit is contained in:
parent
c739183eef
commit
7139d2c881
@ -11,14 +11,17 @@ stdenv.mkDerivation {
|
||||
|
||||
buildInputs = [ cmake unzip libtiff expat zlib libpng libjpeg ];
|
||||
|
||||
# BUILD_OUL wants old linux headers for videodev.h, not available
|
||||
# in stdenv linux headers
|
||||
# BUILD_BRL fails to find open()
|
||||
cmakeFlags = "-DBUILD_OUL=OFF -DBUILD_BRL=OFF -DBUILD_CONTRIB=OFF "
|
||||
+ (if stdenv.hostPlatform.system == "x86_64-linux" then
|
||||
"-DCMAKE_CXX_FLAGS=-fPIC -DCMAKE_C_FLAGS=-fPIC"
|
||||
else
|
||||
"");
|
||||
cmakeFlags = [
|
||||
# BUILD_OUL wants old linux headers for videodev.h, not available
|
||||
# in stdenv linux headers
|
||||
"-DBUILD_OUL=OFF"
|
||||
# BUILD_BRL fails to find open()
|
||||
"-DBUILD_BRL=OFF"
|
||||
"-DBUILD_CONTRIB=OFF"
|
||||
] ++ stdenv.lib.optionals (stdenv.hostPlatform.system == "x86_64-linux") [
|
||||
"-DCMAKE_CXX_FLAGS=-fPIC"
|
||||
"-DCMAKE_C_FLAGS=-fPIC"
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user