Merge pull request #270556 from NickCao/bibutils

bibutils: fix cross compilation
This commit is contained in:
Rick van Schijndel 2023-12-09 11:01:10 +01:00 committed by GitHub
commit 515794d98d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,13 +18,22 @@ stdenv.mkDerivation rec {
--replace '-Wl,-soname,$(SONAME)' ""
'';
# the configure script is not generated by autoconf
# and do not recognize --build/--host cross compilation flags
configurePlatforms = [ ];
configureFlags = [
(if static then "--static" else "--dynamic")
"--install-dir" "$(out)/bin"
"--install-lib" "$(out)/lib"
];
dontAddPrefix = true;
makeFlags = [
"CC:=$(CC)"
];
doCheck = true;
checkTarget = "test";
preCheck = lib.optionalString stdenv.isDarwin ''