summary refs log tree commit diff
path: root/pkgs/development/compilers/sdcc/default.nix
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2014-11-27 00:51:35 +0100
committerVladimír Čunát <vcunat@gmail.com>2014-11-27 00:51:35 +0100
commitc52db08aa02ac6f326624331305313c7056e3b85 (patch)
tree90605c3aa965eb62277b6b56f71606f73d48b23c /pkgs/development/compilers/sdcc/default.nix
parent75d7b9c0c34b5266a9d6a76d42abb4acc5e0e94a (diff)
downloadnixlib-c52db08aa02ac6f326624331305313c7056e3b85.tar
nixlib-c52db08aa02ac6f326624331305313c7056e3b85.tar.gz
nixlib-c52db08aa02ac6f326624331305313c7056e3b85.tar.bz2
nixlib-c52db08aa02ac6f326624331305313c7056e3b85.tar.lz
nixlib-c52db08aa02ac6f326624331305313c7056e3b85.tar.xz
nixlib-c52db08aa02ac6f326624331305313c7056e3b85.tar.zst
nixlib-c52db08aa02ac6f326624331305313c7056e3b85.zip
sdcc: fix build with glibc-2.20 (from upstream)
Diffstat (limited to 'pkgs/development/compilers/sdcc/default.nix')
-rw-r--r--pkgs/development/compilers/sdcc/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/compilers/sdcc/default.nix b/pkgs/development/compilers/sdcc/default.nix
index fe293fbc4b8d..0650fae917a6 100644
--- a/pkgs/development/compilers/sdcc/default.nix
+++ b/pkgs/development/compilers/sdcc/default.nix
@@ -16,6 +16,8 @@ stdenv.mkDerivation rec {
     ${if gputils == null then "--disable-pic14-port --disable-pic16-port" else ""}
   '';
 
+  NIX_CFLAGS_COMPILE = "--std=c99"; # http://sourceforge.net/p/sdcc/code/9106/
+
   meta = with stdenv.lib; {
     description = "Small Device C Compiler";
     longDescription = ''