Description: Ensure CPPFLAGS are used at compilation time
Author: Nick Morrott <nickm@debian.org>
Forwarded: not-needed
Last-Update: 2022-03-26
---
--- a/Makefile
+++ b/Makefile
@@ -21,7 +21,7 @@
 HAVE_LIBWEBP  = $(OPT_DEP_DEFAULT)
 
 # CFLAGS, any optimization flags goes here
-CFLAGS = -std=c99 -Wall -pedantic
+CFLAGS += -std=c99
 
 # icons that will be installed via `make icon`
 ICONS = 16x16.png 32x32.png 48x48.png 64x64.png 128x128.png
@@ -29,7 +29,7 @@
 inc_fonts_0 =
 inc_fonts_1 = -I/usr/include/freetype2 -I$(PREFIX)/include/freetype2
 
-CPPFLAGS = -D_XOPEN_SOURCE=700 \
+CPPFLAGS += -D_XOPEN_SOURCE=700 \
   -DHAVE_LIBGIF=$(HAVE_LIBGIF) -DHAVE_LIBEXIF=$(HAVE_LIBEXIF) \
   -DHAVE_LIBWEBP=$(HAVE_LIBWEBP) -DHAVE_LIBFONTS=$(HAVE_LIBFONTS) \
   $(inc_fonts_$(HAVE_LIBFONTS))
