vxl: fixing build with the new linux headers

This commit is contained in:
Lluís Batlle i Rossell 2012-12-21 10:53:10 +01:00
parent d9f4b0a2e4
commit 06f6bb0559

View File

@ -9,7 +9,10 @@ stdenv.mkDerivation {
buildInputs = [ cmake unzip libtiff expat zlib libpng libjpeg ];
cmakeFlags = "-DBUILD_TESTING=OFF " + (if (stdenv.system == "x86_64-linux") then
# BUILD_OUL wants old linux headers for videodev.h, not available
# in stdenv linux headers
cmakeFlags = "-DBUILD_TESTING=OFF -DBUILD_OUL=OFF "
+ (if (stdenv.system == "x86_64-linux") then
"-DCMAKE_CXX_FLAGS=-fPIC -DCMAKE_C_FLAGS=-fPIC"
else
"");