mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-25 22:10:59 +00:00
Merge pull request #576 from pettyalex/macos-relative-linker-path
Enable rpath with Mac OS linker
This commit is contained in:
commit
486441eb0e
1 changed files with 5 additions and 0 deletions
5
Makefile
5
Makefile
|
@ -335,6 +335,7 @@ config:
|
||||||
@echo "WITH_OPENAL = $(WITH_OPENAL)"
|
@echo "WITH_OPENAL = $(WITH_OPENAL)"
|
||||||
@echo "WITH_SYSTEMWIDE = $(WITH_SYSTEMWIDE)"
|
@echo "WITH_SYSTEMWIDE = $(WITH_SYSTEMWIDE)"
|
||||||
@echo "WITH_SYSTEMDIR = $(WITH_SYSTEMDIR)"
|
@echo "WITH_SYSTEMDIR = $(WITH_SYSTEMDIR)"
|
||||||
|
@echo "WITH_RPATH = $(WITH_RPATH)"
|
||||||
@echo "============================"
|
@echo "============================"
|
||||||
@echo ""
|
@echo ""
|
||||||
|
|
||||||
|
@ -426,9 +427,13 @@ release/quake2 : LDFLAGS += -lexecinfo
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(WITH_RPATH),yes)
|
ifeq ($(WITH_RPATH),yes)
|
||||||
|
ifeq ($(YQ2_OSTYPE), Darwin)
|
||||||
|
release/quake2 : LDFLAGS += -Wl,-rpath,'@executable_path/lib'
|
||||||
|
else
|
||||||
release/quake2 : LDFLAGS += -Wl,-z,origin,-rpath='$$ORIGIN/lib'
|
release/quake2 : LDFLAGS += -Wl,-z,origin,-rpath='$$ORIGIN/lib'
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
# ----------
|
# ----------
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue