summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-03-21 23:39:24 +0000
committerVincent Sanders <vince@kyllikki.org>2015-03-21 23:39:24 +0000
commit62849e6851925a55817f68601fa69b3727422b40 (patch)
tree8a4052a49f3b533a6fa239ec043260a89200ae47 /Makefile
parent447585d028eb275b5f6eb1cea8627a01a64886eb (diff)
downloadlibdom-62849e6851925a55817f68601fa69b3727422b40.tar.gz
libdom-62849e6851925a55817f68601fa69b3727422b40.tar.bz2
Update CFLAGS to avoid deprication warning for glibc 2.21 and later.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 0ed7d5d..2299679 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,9 @@
+#!/bin/make
+#
+# Makefile for libdom
+#
+# Copyright 2009-1015 John-Mark Bell <jmb@netsurf-browser.org>
+
# Component settings
COMPONENT := dom
COMPONENT_VERSION := 0.1.2
@@ -19,12 +25,14 @@ WARNFLAGS := -Wall -W -Wundef -Wpointer-arith -Wcast-align \
ifneq ($(HOST),i586-pc-haiku)
WARNFLAGS := $(WARNFLAGS) -Werror
endif
+
# AmigaOS needs this to avoid warnings
ifeq ($(findstring amigaos,$(HOST)),amigaos)
CFLAGS := -U__STRICT_ANSI__ $(CFLAGS)
endif
-CFLAGS := -D_BSD_SOURCE -I$(CURDIR)/include/ \
- -I$(CURDIR)/src -I$(CURDIR)/binding $(WARNFLAGS) $(CFLAGS)
+CFLAGS := -D_BSD_SOURCE -D_DEFAULT_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)