Skip to content

Commit

Permalink
systemd: Do optimised build
Browse files Browse the repository at this point in the history
  • Loading branch information
kirelagin committed Nov 5, 2019
1 parent 094a66a commit 62593e7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkgs/os-specific/linux/systemd/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ stdenv.mkDerivation {
#dontAddPrefix = true;

mesonFlags = [
"-Db_ndebug=true"
"-Db_lto=true"
"-Db_pie=true"

"-Drootprefix=${placeholder "out"}"
Expand Down Expand Up @@ -195,6 +197,7 @@ stdenv.mkDerivation {

preConfigure = ''
mesonFlagsArray+=(-Dntp-servers="0.nixos.pool.ntp.org 1.nixos.pool.ntp.org 2.nixos.pool.ntp.org 3.nixos.pool.ntp.org")
export AR="gcc-ar" # For LTO
export LC_ALL="en_US.UTF-8";
# FIXME: patch this in systemd properly (and send upstream).
# already fixed in f00929ad622c978f8ad83590a15a765b4beecac9: (u)mount
Expand Down

0 comments on commit 62593e7

Please sign in to comment.