Merge pull request #91156 from primeos/cross-compilation-fixes
efibootmgr,openldap: Cross compilation fixes
This commit is contained in:
commit
ae3d755af4
@ -40,8 +40,8 @@ stdenv.mkDerivation rec {
|
|||||||
++ stdenv.lib.optional stdenv.isFreeBSD "--with-pic";
|
++ stdenv.lib.optional stdenv.isFreeBSD "--with-pic";
|
||||||
|
|
||||||
postBuild = ''
|
postBuild = ''
|
||||||
make $makeFlags -C contrib/slapd-modules/passwd/sha2
|
make $makeFlags CC=$CC -C contrib/slapd-modules/passwd/sha2
|
||||||
make $makeFlags -C contrib/slapd-modules/passwd/pbkdf2
|
make $makeFlags CC=$CC -C contrib/slapd-modules/passwd/pbkdf2
|
||||||
'';
|
'';
|
||||||
|
|
||||||
doCheck = false; # needs a running LDAP server
|
doCheck = false; # needs a running LDAP server
|
||||||
|
@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
|
|||||||
# We have no LTO here since commit 22284b07.
|
# We have no LTO here since commit 22284b07.
|
||||||
postPatch = if stdenv.isi686 then "sed '/^CFLAGS/s/-flto//' -i Make.defaults" else null;
|
postPatch = if stdenv.isi686 then "sed '/^CFLAGS/s/-flto//' -i Make.defaults" else null;
|
||||||
|
|
||||||
makeFlags = [ "EFIDIR=nixos" ];
|
makeFlags = [ "EFIDIR=nixos" "PKG_CONFIG=${stdenv.cc.targetPrefix}pkg-config" ];
|
||||||
|
|
||||||
installFlags = [ "prefix=$(out)" ];
|
installFlags = [ "prefix=$(out)" ];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user