From 780ed6d9ac68a27b6248b3a8f495c10233620221 Mon Sep 17 00:00:00 2001 From: David Chavez Date: Mon, 30 May 2022 17:10:07 +0200 Subject: [PATCH] Make X11 paths package-agnostic --- soh/Makefile | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/soh/Makefile b/soh/Makefile index aa031b037..4ecc76421 100644 --- a/soh/Makefile +++ b/soh/Makefile @@ -80,9 +80,7 @@ ifeq ($(UNAME), Linux) #LINUX endif ifeq ($(UNAME), Darwin) #APPLE - INC_DIRS += $(addprefix -I, \ - /opt/homebrew/Cellar/libx11/1.8/include \ -) + INC_DIRS += $(shell pkg-config --cflags x11) endif LDDIRS := $(addprefix -L, \ @@ -97,9 +95,7 @@ ifeq ($(UNAME), Linux) #LINUX endif ifeq ($(UNAME), Darwin) #APPLE - LDDIRS += $(addprefix -L, \ - /opt/homebrew/Cellar/libx11/1.8/lib \ -) + LDDIRS += $(shell pkg-config --libs x11) endif LDLIBS := \