ucl: only pass -stc=c90 when using gcc

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

Changed files
+2 -2
pkgs
development
libraries
+2 -2
pkgs/development/libraries/ucl/default.nix
···
-
{stdenv, fetchurl}:
stdenv.mkDerivation {
name = "ucl-1.03";
···
};
# needed to successfully compile with gcc 6
-
NIX_CFLAGS_COMPILE = "-std=c90 -fPIC";
meta = {
homepage = http://www.oberhumer.com/opensource/ucl/;
···
+
{ stdenv, fetchurl }:
stdenv.mkDerivation {
name = "ucl-1.03";
···
};
# needed to successfully compile with gcc 6
+
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isGNU "-std=c90";
meta = {
homepage = http://www.oberhumer.com/opensource/ucl/;