bibutils: fix cross compilation

This commit is contained in:
Nick Cao 2023-11-27 23:05:48 -05:00
parent cc0257d063
commit 54466394ca
No known key found for this signature in database

View file

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