ucl: only pass -stc=c90 when using gcc

Also remove -fPIC, it's included in the hardening flags by default.
This commit is contained in:
Daiderd Jordan 2017-09-06 21:22:24 +02:00
parent 9efd7a9b6e
commit 51eafbe028
No known key found for this signature in database
GPG Key ID: D02435D05B810C96
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
{stdenv, fetchurl}: { stdenv, fetchurl }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "ucl-1.03"; name = "ucl-1.03";
@ -8,7 +8,7 @@ stdenv.mkDerivation {
}; };
# needed to successfully compile with gcc 6 # 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 = { meta = {
homepage = http://www.oberhumer.com/opensource/ucl/; homepage = http://www.oberhumer.com/opensource/ucl/;