forked from mirrors/nixpkgs
utillinux: Fix cross-compiling when building with systemd
This commit is contained in:
parent
cfa63f9d4f
commit
085bfcefb9
|
@ -30,7 +30,8 @@ in stdenv.mkDerivation rec {
|
|||
|
||||
crossAttrs = {
|
||||
# Work around use of `AC_RUN_IFELSE'.
|
||||
preConfigure = "export scanf_cv_type_modifier=ms";
|
||||
preConfigure = "export scanf_cv_type_modifier=ms" + lib.optionalString (systemd != null)
|
||||
"\nconfigureFlags+=\" --with-systemd --with-systemdsystemunitdir=$bin/lib/systemd/system/\"";
|
||||
};
|
||||
|
||||
preConfigure = lib.optionalString (systemd != null) ''
|
||||
|
|
Loading…
Reference in a new issue