Skip to content

Commit

Permalink
ucl: only pass -stc=c90 when using gcc
Browse files Browse the repository at this point in the history
Also remove -fPIC, it's included in the hardening flags by default.

(cherry picked from commit 51eafbe)
  • Loading branch information
LnL7 committed Sep 6, 2017
1 parent de2697e commit a6c2902
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/development/libraries/ucl/default.nix
@@ -1,4 +1,4 @@
{stdenv, fetchurl}:
{ stdenv, fetchurl }:

stdenv.mkDerivation {
name = "ucl-1.03";
Expand All @@ -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/;
Expand Down

0 comments on commit a6c2902

Please sign in to comment.