bind: set BUILD_CC for cross compilation

This is due to a hint by @Ericson2314 in
https://github.com/NixOS/nixpkgs/pull/86166#issuecomment-633153996
This commit is contained in:
Justin Humm 2020-06-15 21:03:03 +02:00
parent f37456a046
commit 6cdbb1fb1f
No known key found for this signature in database
GPG key ID: 5F24E3BD56617EB2

View file

@ -54,7 +54,8 @@ stdenv.mkDerivation rec {
"--without-eddsa"
"--with-aes"
] ++ lib.optional stdenv.isLinux "--with-libcap=${libcap.dev}"
++ lib.optional enableSeccomp "--enable-seccomp";
++ lib.optional enableSeccomp "--enable-seccomp"
++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) "BUILD_CC=$(CC_FOR_BUILD)";
postInstall = ''
moveToOutput bin/bind9-config $dev