diff options
author | Rick van Schijndel <rol3517@gmail.com> | 2021-12-22 21:25:10 +0100 |
---|---|---|
committer | Rick van Schijndel <rol3517@gmail.com> | 2021-12-22 21:25:10 +0100 |
commit | bca64be89364655b19b44cd28627bca511af5ee4 (patch) | |
tree | 077aef6f9a5c961f140035fa130a368706dfcead /pkgs/development/libraries/apr-util | |
parent | 66b3c56bb7f37493f2df4009775f8701e7edbb7a (diff) |
apr-util: support cross-compilation
Requires a small hack to get to work, I don't know how to read autotools scripts :(.
Diffstat (limited to 'pkgs/development/libraries/apr-util')
-rw-r--r-- | pkgs/development/libraries/apr-util/default.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/development/libraries/apr-util/default.nix b/pkgs/development/libraries/apr-util/default.nix index 0be9da1bb0eea..70632409d0d61 100644 --- a/pkgs/development/libraries/apr-util/default.nix +++ b/pkgs/development/libraries/apr-util/default.nix @@ -39,6 +39,14 @@ stdenv.mkDerivation rec { "--without-freetds" "--without-berkeley-db" "--without-crypto" ] ; + # For some reason, db version 6.9 is selected when cross-compiling. + # It's unclear as to why, it requires someone with more autotools / configure knowledge to go deeper into that. + # Always replacing the link flag with a generic link flag seems to help though, so let's do that for now. + postConfigure = lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) '' + substituteInPlace Makefile \ + --replace "-ldb-6.9" "-ldb" + ''; + propagatedBuildInputs = [ apr expat libiconv ] ++ optional sslSupport openssl ++ optional bdbSupport db |