Date: Monday, October 12, 2020 @ 18:28:10
  Author: eschwartz
Revision: 723710

llpp: makefile: expand cflags once, upfront

optimization: ensure := is used to avoid running subprocesses once per target

Modified:
  llpp/trunk/GNUmakefile

-------------+
 GNUmakefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: GNUmakefile
===================================================================
--- GNUmakefile 2020-10-12 18:25:11 UTC (rev 723709)
+++ GNUmakefile 2020-10-12 18:28:10 UTC (rev 723710)
@@ -14,7 +14,7 @@
 # includes and libs
 PKGCONF_DEPS := freetype2 harfbuzz libopenjp2 libjpeg x11 zlib
 override CPPFLAGS += -D_GNU_SOURCE -DFFP
-override CFLAGS += -g -std=c99 -pedantic -Wall -Wextra -Wshadow $(shell 
pkg-config --cflags $(PKGCONF_DEPS))
+override CFLAGS := $(CFLAGS) -g -std=c99 -pedantic -Wall -Wextra -Wshadow 
$(shell pkg-config --cflags $(PKGCONF_DEPS))
 LDLIBS := -lpthread -lmupdf -lmupdf-third -ljbig2dec $(shell pkg-config --libs 
$(PKGCONF_DEPS))
 
 # ocaml

Reply via email to