113.0-1
[arch-packages.git] / giflib / trunk / giflib-5.1.9-make-flags.patch
blobf50d58640c875e6379e3df8b411612f903fcba8c
1 From 788a52c399f4731ac1fb27a49db48626f3e140e1 Mon Sep 17 00:00:00 2001
2 From: anthraxx <levente@leventepolyak.net>
3 Date: Tue, 2 Apr 2019 14:53:28 +0200
4 Subject: [PATCH] respect existence of distro CFLAGS and CPPFLAGS
6 - append CFLAGS instead of set to honor default distro CFLAGS
7 - add CPPFLAGS that are defined by distros
8 ---
9 Makefile | 6 +++---
10 1 file changed, 3 insertions(+), 3 deletions(-)
12 diff --git a/Makefile b/Makefile
13 index e4ded69..7fef84a 100644
14 --- a/Makefile
15 +++ b/Makefile
16 @@ -8,7 +8,7 @@
18 OFLAGS = -O0 -g
19 OFLAGS = -O2
20 -CFLAGS = -std=gnu99 -fPIC -Wall -Wno-format-truncation $(OFLAGS)
21 +CFLAGS += -std=gnu99 -fPIC -Wall -Wno-format-truncation $(OFLAGS)
23 SHELL = /bin/sh
24 TAR = tar
25 @@ -68,13 +68,13 @@ all: libgif.so libgif.a libutil.so libutil.a $(UTILS)
26 $(UTILS):: libgif.a libutil.a
28 libgif.so: $(OBJECTS) $(HEADERS)
29 - $(CC) $(CFLAGS) -shared $(LDFLAGS) -Wl,-soname -Wl,libgif.so.$(LIBMAJOR) -o libgif.so $(OBJECTS)
30 + $(CC) $(CFLAGS) $(CPPFLAGS) -shared $(LDFLAGS) -Wl,-soname -Wl,libgif.so.$(LIBMAJOR) -o libgif.so $(OBJECTS)
32 libgif.a: $(OBJECTS) $(HEADERS)
33 $(AR) rcs libgif.a $(OBJECTS)
35 libutil.so: $(UOBJECTS) $(UHEADERS)
36 - $(CC) $(CFLAGS) -shared $(LDFLAGS) -Wl,-soname -Wl,libutil.so.$(LIBMAJOR) -o libutil.so $(UOBJECTS)
37 + $(CC) $(CFLAGS) $(CPPFLAGS) -shared $(LDFLAGS) -Wl,-soname -Wl,libutil.so.$(LIBMAJOR) -o libutil.so $(UOBJECTS)
39 libutil.a: $(UOBJECTS) $(UHEADERS)
40 $(AR) rcs libutil.a $(UOBJECTS)
41 --
42 2.21.0