summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFran├žois Revel <mmu_man@netsurf-browser.org>2012-04-17 19:07:12 +0000
committerFran├žois Revel <mmu_man@netsurf-browser.org>2012-04-17 19:07:12 +0000
commitdb001868768d6214ffcc8558f42a9fbdfcefec18 (patch)
treeea395cc41858f44a8ddff3a8b14e7dd05af6a9e3 /Makefile
parent88a7d4e4e9faa203255cfc52be10e7ec184dbf24 (diff)
downloadlibdom-db001868768d6214ffcc8558f42a9fbdfcefec18.tar.gz
libdom-db001868768d6214ffcc8558f42a9fbdfcefec18.tar.bz2
Don't use -std=c99 for gcc2. Oddly ZETA's gcc2 didn't really care, but Haiku's does.
svn path=/trunk/libdom/; revision=13878
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 8a1b447..368d3d2 100644
--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,7 @@ TESTRUNNER := $(PERL) build/testtools/testrunner.pl
WARNFLAGS := -Wall -W -Wundef -Wpointer-arith -Wcast-align \
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
-Wmissing-declarations -Wnested-externs
-# BeOS/Haiku standard library headers create warnings
+# BeOS/Haiku standard library headers generate warnings
ifneq ($(TARGET),beos)
WARNFLAGS := $(WARNFLAGS) -Werror
endif
@@ -21,8 +21,12 @@ endif
ifeq ($(TARGET),amiga)
CFLAGS := -U__STRICT_ANSI__ $(CFLAGS)
endif
-CFLAGS := -std=c99 -D_BSD_SOURCE -I$(CURDIR)/include/ \
+CFLAGS := -D_BSD_SOURCE -I$(CURDIR)/include/ \
-I$(CURDIR)/src -I$(CURDIR)/binding $(WARNFLAGS) $(CFLAGS)
+# Some gcc2 versions choke on -std=c99, and it doesn't know about it anyway
+ifneq ($(GCCVER),2)
+ CFLAGS := -std=c99 $(CFLAGS)
+endif
# Parserutils & wapcaplet
ifneq ($(findstring clean,$(MAKECMDGOALS)),clean)