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
10 1 file changed, 3 insertions(+), 3 deletions(-)
12 diff --git a/Makefile b/Makefile
13 index e4ded69..7fef84a 100644
20 -CFLAGS = -std=gnu99 -fPIC -Wall -Wno-format-truncation $(OFLAGS)
21 +CFLAGS += -std=gnu99 -fPIC -Wall -Wno-format-truncation $(OFLAGS)
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)