ucl: only pass -stc=c90 when using gcc

Also remove -fPIC, it's included in the hardening flags by default.

+2 -2
+2 -2
pkgs/development/libraries/ucl/default.nix
··· 1 - {stdenv, fetchurl}: 1 + { stdenv, fetchurl }: 2 2 3 3 stdenv.mkDerivation { 4 4 name = "ucl-1.03"; ··· 8 8 }; 9 9 10 10 # 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"; 12 12 13 13 meta = { 14 14 homepage = http://www.oberhumer.com/opensource/ucl/;