From 992f453016c217984124ed3abefd1a446784f997 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Sun, 18 Jun 2017 14:54:16 +0100 Subject: [PATCH] Only use /usr/local/opt/openal-soft on Darwin Commit 883781c selected these paths for all OSs, but when linking to a system copy of OpenAL for Linux distribution binaries we want the normal OpenAL in /usr. Signed-off-by: Simon McVittie --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 91b2f72f..bd4b81a6 100755 --- a/Makefile +++ b/Makefile @@ -430,8 +430,12 @@ else release/quake2 : CFLAGS += -DUSE_OPENAL -DDEFAULT_OPENAL_DRIVER='"libopenal.so.1"' -DDLOPEN_OPENAL endif else # !DLOPEN_OPENAL -release/quake2 : CFLAGS += -DUSE_OPENAL -I/usr/local/opt/openal-soft/include -release/quake2 : LDFLAGS += -lopenal -L/usr/local/opt/openal-soft/lib +release/quake2 : CFLAGS += -DUSE_OPENAL +release/quake2 : LDFLAGS += -lopenal +ifeq ($(YQ2_OSTYPE), Darwin) +release/quake2 : CFLAGS += -I/usr/local/opt/openal-soft/include +release/quake2 : LDFLAGS += -L/usr/local/opt/openal-soft/lib +endif # Darwin endif # !DLOPEN_OPENAL endif # WITH_OPENAL