From 51eafbe028d5daf4bfb23db2e60bed1d1b689862 Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Wed, 6 Sep 2017 21:22:24 +0200 Subject: [PATCH] ucl: only pass -stc=c90 when using gcc Also remove -fPIC, it's included in the hardening flags by default. --- pkgs/development/libraries/ucl/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/ucl/default.nix b/pkgs/development/libraries/ucl/default.nix index ceb97b6088bc..aa983b1394b1 100644 --- a/pkgs/development/libraries/ucl/default.nix +++ b/pkgs/development/libraries/ucl/default.nix @@ -1,4 +1,4 @@ -{stdenv, fetchurl}: +{ stdenv, fetchurl }: stdenv.mkDerivation { name = "ucl-1.03"; @@ -8,7 +8,7 @@ stdenv.mkDerivation { }; # needed to successfully compile with gcc 6 - NIX_CFLAGS_COMPILE = "-std=c90 -fPIC"; + NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isGNU "-std=c90"; meta = { homepage = http://www.oberhumer.com/opensource/ucl/;