ilmbase: fix cross

This commit is contained in:
Robin Gloster
2018-11-29 13:06:27 +01:00
parent 06f9b4769b
commit 694b4d29e1
2 changed files with 39 additions and 3 deletions
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, automake, autoconf, libtool, which }:
{ stdenv, fetchurl, buildPackages, automake, autoconf, libtool, which }:
stdenv.mkDerivation rec {
name = "ilmbase-${version}";
@@ -16,11 +16,12 @@ stdenv.mkDerivation rec {
./bootstrap
'';
buildInputs = [ automake autoconf libtool which ];
depsBuildBuild = [ buildPackages.stdenv.cc ];
nativeBuildInputs = [ automake autoconf libtool which ];
NIX_CFLAGS_LINK = [ "-pthread" ];
patches = [ ./bootstrap.patch ];
patches = [ ./bootstrap.patch ./cross.patch ];
# fails 1 out of 1 tests with
# "lt-ImathTest: testBoxAlgo.cpp:892: void {anonymous}::boxMatrixTransform(): Assertion `b21 == b2' failed"