dhcp: Add BUILD_CC when cross compiling

This commit is contained in:
rembo10
2021-12-21 15:03:49 +01:00
committed by sterni
parent 68a7424eae
commit 7e5043efac
+2 -1
View File
@@ -51,7 +51,8 @@ stdenv.mkDerivation rec {
"--sysconfdir=/etc"
"--localstatedir=/var"
] ++ lib.optional stdenv.isLinux "--with-randomdev=/dev/random"
++ lib.optionals (openldap != null) [ "--with-ldap" "--with-ldapcrypto" ];
++ lib.optionals (openldap != null) [ "--with-ldap" "--with-ldapcrypto" ]
++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) "BUILD_CC=$(CC_FOR_BUILD)";
NIX_CFLAGS_COMPILE = builtins.toString [
"-Wno-error=pointer-compare"