Skip to content

Commit 930ffd9

Browse files
committed
test
1 parent bc620f0 commit 930ffd9

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,9 @@ export VERSION_FLAGS=-DGIT_HASH="\"$(shell git rev-parse HEAD 2> /dev/null || ec
3737
-DBUILD_USER="\"$(USER)@$(HOSTNAME)\""\
3838
-DBUILD_DIRECTORY="\"$(PWD)\""
3939

40-
LIBS= -lX11 -lXpm
41-
LIBS+=$(shell pkg-config --cflags-only-L x11 xpm) # for macOS
40+
X11DIR= $(shell pkg-config --libs-only-L x11 xpm) # for macOS
4241
CFLAGS= -c -std=gnu11 $(OPT) $(GPROF) $(W) $(GDB)
43-
OFLAGS= -lm $(GPROF) $(LIBS)
42+
OFLAGS= -lm $(GPROF) $(LIBS) -lX11 -lXpm $(X11DIR)
4443

4544
SRCDIR=src
4645
OBJDIR=obj

0 commit comments

Comments
 (0)