From a7649fbd9adb79ff81acb0341dfbb3822b8e12aa Mon Sep 17 00:00:00 2001 From: Chris Down Date: Tue, 9 Apr 2024 02:26:54 +0100 Subject: [PATCH] makefile: Make sure CPPFLAGS/LDLIBS can only be added to --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e74ec5b..10c1c63 100644 --- a/Makefile +++ b/Makefile @@ -2,8 +2,8 @@ CFLAGS := -std=gnu11 -O2 -Wall -Wextra -Wshadow -Wpointer-arith \ -Wcast-align -Wmissing-prototypes -Wstrict-overflow -Wformat=2 \ -Wwrite-strings -Warray-bounds -Wstrict-prototypes \ -Werror $(CFLAGS) -CPPFLAGS := -I/usr/X11R6/include -L/usr/X11R6/lib -LDLIBS := -lX11 -lXfixes +CPPFLAGS += -I/usr/X11R6/include -L/usr/X11R6/lib +LDLIBS += -lX11 -lXfixes PREFIX ?= /usr/local bindir := $(PREFIX)/bin debug_cflags := -D_FORTIFY_SOURCE=2 -fsanitize=leak -fsanitize=address \