summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2013-05-19 21:06:16 +0100
committerTim Angus <tim@ngus.net>2014-08-28 11:02:37 +0100
commit9d55890bd5c6cf6be07a6de3c106942844b80616 (patch)
tree0ad4eb65e47dba45b702fdbd130eeb41f9e319d6
parentf68e028a522f2cd7e8211da8d02e97756c16ae85 (diff)
Allow OpenAL to be in a non-standard location on all platforms
Similar to libcurl, we didn't use OPENAL_LIBS and assumed it was always "-lopenal".
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 4b9af9c2..6334667c 100644
--- a/Makefile
+++ b/Makefile
@@ -267,6 +267,7 @@ ifneq ($(BUILD_CLIENT),0)
else
# assume they're in the system default paths (no -I or -L needed)
CURL_LIBS=-lcurl
+ OPENAL_LIBS=-lopenal
endif
# Use sdl-config if all else fails
ifeq ($(SDL_CFLAGS),)
@@ -364,7 +365,7 @@ ifneq (,$(findstring "$(PLATFORM)", "linux" "gnu_kfreebsd" "kfreebsd-gnu"))
ifeq ($(USE_OPENAL),1)
ifneq ($(USE_OPENAL_DLOPEN),1)
- CLIENT_LIBS += -lopenal
+ CLIENT_LIBS += $(OPENAL_LIBS)
endif
endif
@@ -658,7 +659,7 @@ ifeq ($(PLATFORM),freebsd)
# optional features/libraries
ifeq ($(USE_OPENAL),1)
ifeq ($(USE_OPENAL_DLOPEN),1)
- CLIENT_LIBS += $(THREAD_LIBS) -lopenal
+ CLIENT_LIBS += $(THREAD_LIBS) $(OPENAL_LIBS)
endif
endif
@@ -750,7 +751,7 @@ ifeq ($(PLATFORM),openbsd)
ifeq ($(USE_OPENAL),1)
ifneq ($(USE_OPENAL_DLOPEN),1)
- CLIENT_LIBS += $(THREAD_LIBS) -lopenal
+ CLIENT_LIBS += $(THREAD_LIBS) $(OPENAL_LIBS)
endif
endif