diff options
author | Will Dietz <w@wdtz.org> | 2018-09-18 17:03:57 -0500 |
---|---|---|
committer | Will Dietz <w@wdtz.org> | 2018-09-18 17:13:53 -0500 |
commit | ea326dd4b52a57f812c72cba3d3d21dd9a343a85 (patch) | |
tree | bbe708b21d2f0cd815198eb2178c0e85af1801cf /pkgs/os-specific/linux/musl | |
parent | 3961cab52f45bd2b0ffb54d20ea1caf14bbcd483 (diff) |
musl: convert CFLAGS to array
Diffstat (limited to 'pkgs/os-specific/linux/musl')
-rw-r--r-- | pkgs/os-specific/linux/musl/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/musl/default.nix b/pkgs/os-specific/linux/musl/default.nix index a24900ce337ae..f88e1850bad5b 100644 --- a/pkgs/os-specific/linux/musl/default.nix +++ b/pkgs/os-specific/linux/musl/default.nix @@ -61,7 +61,8 @@ stdenv.mkDerivation rec { configureFlagsArray+=("--syslibdir=$out/lib") ''; - CFLAGS="-fstack-protector-strong" + lib.optionalString stdenv.hostPlatform.isPower " -mlong-double-64"; + CFLAGS = [ "-fstack-protector-strong" ] + ++ lib.optional stdenv.hostPlatform.isPower "-mlong-double-64"; configureFlags = [ "--enable-shared" |