Skip to content

Commit

Permalink
Update macos build
Browse files Browse the repository at this point in the history
  • Loading branch information
borodust committed Mar 22, 2020
1 parent c353024 commit 429d234
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/lib/Makefile
@@ -1,6 +1,6 @@
BIN = libopenal

BODGE_CMAKE_OPTS =
STRIP := strip -s

ifeq ($(OS),Windows_NT)
BIN := $(BIN).dll
Expand All @@ -12,6 +12,7 @@ else
BIN := $(BIN).dylib
BODGE_CMAKE_OPTS += -DALSOFT_REQUIRE_COREAUDIO=ON
BUILD_HOOKS += build-darwin
STRIP := strip -ST
else
BIN := $(BIN).so
BODGE_CMAKE_OPTS += -DALSOFT_BACKEND_JACK=OFF
Expand All @@ -25,6 +26,8 @@ build: $(BIN) $(BUILD_HOOKS)
build-windows:

build-darwin:
install_name_tool -id "@rpath/$(BIN)" $(BIN)
install_name_tool -change "/usr/lib/libc++.1.dylib" "@loader_path/libc++.1.dylib" $(BIN)

build-linux:
patchelf --set-soname "$(BIN).bodged" $(BIN)
Expand All @@ -51,7 +54,7 @@ $(BIN):
$(BODGE_CMAKE_OPTS) .. \
&& cmake --build . --config Release --clean-first
cp -L openal/build/$(BIN) $(BIN)
strip -s $(BIN)
$(STRIP) $(BIN)


clean:
Expand Down

0 comments on commit 429d234

Please sign in to comment.