Skip to content

Commit

Permalink
makefile: Make sure CPPFLAGS/LDLIBS can only be added to
Browse files Browse the repository at this point in the history
  • Loading branch information
cdown committed Apr 9, 2024
1 parent 70cc5d2 commit b2fccd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit b2fccd3

Please sign in to comment.