3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #136771 from Mindavi/sysklogd/cross

sysklogd: support cross-compilation
This commit is contained in:
Jörg Thalheim 2021-09-07 03:35:22 +01:00 committed by GitHub
commit 52b5ba2db5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,6 +14,17 @@ stdenv.mkDerivation {
installFlags = [ "BINDIR=$(out)/sbin" "MANDIR=$(out)/share/man" "INSTALL=install" ];
makeFlags = [
"CC=${stdenv.cc.targetPrefix}cc"
];
postPatch = ''
# Disable stripping during installation, stripping will be done anyway.
# Fixes cross-compilation.
substituteInPlace Makefile \
--replace "-m 500 -s" "-m 500"
'';
preConfigure =
''
sed -e 's@-o \''${MAN_USER} -g \''${MAN_GROUP} -m \''${MAN_PERMS} @@' -i Makefile