From ea326dd4b52a57f812c72cba3d3d21dd9a343a85 Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Tue, 18 Sep 2018 17:03:57 -0500 Subject: [PATCH] musl: convert CFLAGS to array --- pkgs/os-specific/linux/musl/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/musl/default.nix b/pkgs/os-specific/linux/musl/default.nix index a24900ce337a..f88e1850bad5 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"