ucl: only pass -stc=c90 when using gcc
Also remove -fPIC, it's included in the hardening flags by default.
commit51eafbe028d5daf4bfb23db2e60bed1d1b689862
authorDaiderd Jordan <daiderd@gmail.com>
dateWed 6 Sep 2017, 21:22 (9 years ago)
parent9efd7a9
pkgs/development/libraries/ucl/default.nix+2−2
@@ -1,4 +1,4 @@
1−{stdenv, fetchurl}:
1+{ stdenv, fetchurl }:
22
33stdenv.mkDerivation {
44 name = "ucl-1.03";
@@ -8,7 +8,7 @@ stdenv.mkDerivation {
88 };
99
1010 # needed to successfully compile with gcc 6
11− NIX_CFLAGS_COMPILE = "-std=c90 -fPIC";
11+ NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isGNU "-std=c90";
1212
1313 meta = {
1414 homepage = http://www.oberhumer.com/opensource/ucl/;