mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
apr-util: support cross-compilation
Requires a small hack to get to work, I don't know how to read autotools scripts :(.
This commit is contained in:
parent
66b3c56bb7
commit
bca64be893
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user