libXt: fix cross-build

This commit is contained in:
Jörg Thalheim 2018-12-12 00:53:20 +00:00
parent 220dcada79
commit 054b938c5c
No known key found for this signature in database
GPG key ID: CA4106B8D7CC79FA

View file

@ -145,7 +145,8 @@ self: super:
configureFlags = attrs.configureFlags or []
++ malloc0ReturnsNullCrossFlag;
propagatedBuildInputs = [ self.libSM ];
CPP = stdenv.lib.optionalString stdenv.isDarwin "clang -E -";
depsBuildBuild = [ buildPackages.stdenv.cc ];
CPP = if stdenv.isDarwin then "clang -E -" else "${stdenv.cc.targetPrefix}cc -E -";
outputs = [ "out" "dev" "devdoc" ];
});