diff options
author | Vincent Sanders <vince@kyllikki.org> | 2015-03-21 23:23:47 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2015-03-21 23:23:47 +0000 |
commit | dc9547360c5dabc82cc2893048e9cda8020dbaa7 (patch) | |
tree | 645c459547e748c55a91d7318f7ec1898c85d10d | |
parent | 120ed97a5e2d808931537a8075f5ce4275586042 (diff) | |
download | libcss-dc9547360c5dabc82cc2893048e9cda8020dbaa7.tar.gz libcss-dc9547360c5dabc82cc2893048e9cda8020dbaa7.tar.bz2 |
Update CFLAGS to avoid deprication warning for glibc 2.21 and later.
-rw-r--r-- | Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -1,3 +1,9 @@ +#!/bin/make +# +# Makefile for libcss +# +# Copyright 2009-1015 John-Mark Bell <jmb@netsurf-browser.org> + # Component settings COMPONENT := css COMPONENT_VERSION := 0.5.0 @@ -21,8 +27,10 @@ ifneq ($(HOST),i586-pc-haiku) WARNFLAGS := $(WARNFLAGS) -Werror endif endif -CFLAGS := -D_BSD_SOURCE -I$(CURDIR)/include/ \ - -I$(CURDIR)/src $(WARNFLAGS) $(CFLAGS) + +CFLAGS := -D_BSD_SOURCE -D_DEFAULT_SOURCE \ + -I$(CURDIR)/include/ -I$(CURDIR)/src \ + $(WARNFLAGS) $(CFLAGS) ifneq ($(GCCVER),2) CFLAGS := $(CFLAGS) -std=c99 else |