dnsmasq: fix cross-compilation
This is done by specifying pkg-config in the makeFlags, ensuring that the correct pkg-config is injected. Depends on changes that are currently only in staging: -07ecf87693
-4f6ec19dbc
See https://github.com/NixOS/nixpkgs/pull/114902 for those changes.
This commit is contained in:
parent
e3e59d4ab7
commit
b12f16f283
@ -1,5 +1,5 @@
|
|||||||
{ lib, stdenv, fetchurl, pkg-config, dbus, nettle, fetchpatch
|
{ lib, stdenv, fetchurl, pkg-config, dbus, nettle, fetchpatch
|
||||||
, libidn, libnetfilter_conntrack }:
|
, libidn, libnetfilter_conntrack, buildPackages }:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
@ -33,6 +33,7 @@ stdenv.mkDerivation rec {
|
|||||||
"BINDIR=$(out)/bin"
|
"BINDIR=$(out)/bin"
|
||||||
"MANDIR=$(out)/man"
|
"MANDIR=$(out)/man"
|
||||||
"LOCALEDIR=$(out)/share/locale"
|
"LOCALEDIR=$(out)/share/locale"
|
||||||
|
"PKG_CONFIG=${buildPackages.pkg-config}/bin/${buildPackages.pkg-config.targetPrefix}pkg-config"
|
||||||
];
|
];
|
||||||
|
|
||||||
hardeningEnable = [ "pie" ];
|
hardeningEnable = [ "pie" ];
|
||||||
|
Loading…
Reference in New Issue
Block a user