diff options
author | Vincent Sanders <vince@kyllikki.org> | 2015-03-22 00:18:38 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2015-03-22 00:18:38 +0000 |
commit | f9ad837e326e72f5959e4a90787f48c805b4cb2b (patch) | |
tree | e9d6bbacd60db9ef3ab4dbdf5a623487c176d7c3 | |
parent | feb38a29a1723b3418ae5d3b11aaff02907b9790 (diff) | |
download | libnsgif-f9ad837e326e72f5959e4a90787f48c805b4cb2b.tar.gz libnsgif-f9ad837e326e72f5959e4a90787f48c805b4cb2b.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 libnsgif +# +# Copyright 2009-1015 John-Mark Bell <jmb@netsurf-browser.org> + # Component settings COMPONENT := nsgif COMPONENT_VERSION := 0.1.2 @@ -17,8 +23,10 @@ WARNFLAGS := -Wall -W -Wundef -Wpointer-arith -Wcast-align \ ifneq ($(BUILD),i586-pc-haiku) WARNFLAGS := $(WARNFLAGS) -Werror 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 |