aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2012-03-17 10:36:13 -0500
committerJack Nagel2012-03-17 10:38:55 -0500
commit7e2100eebc78f6ba450c08364bafca89de8b5ba5 (patch)
treeea47049e061a21a0b50de769b75c98d28fda446e /Library/Formula
parenta72568498135f0f9c89fccf6a56ba752c658ed67 (diff)
downloadhomebrew-7e2100eebc78f6ba450c08364bafca89de8b5ba5.tar.bz2
cdecl: needs -std=gnu89
cdecl uses "restrict" as a variable name, but "restrict" is a keyword in C99. Fixes #11005. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/cdecl.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Formula/cdecl.rb b/Library/Formula/cdecl.rb
index 4889c123b..54cf3c87b 100644
--- a/Library/Formula/cdecl.rb
+++ b/Library/Formula/cdecl.rb
@@ -12,8 +12,10 @@ class Cdecl < Formula
bin.mkpath
man1.mkpath
+ ENV.append 'CFLAGS', '-DBSD -DUSE_READLINE -std=gnu89'
+
system "make", "CC=#{ENV.cc}",
- "CFLAGS=#{ENV.cflags} -DBSD -DUSE_READLINE",
+ "CFLAGS=#{ENV.cflags}",
"LIBS=-lreadline",
"BINDIR=#{bin}",
"MANDIR=#{man1}",