Enable rpath with Mac OS linker

This commit is contained in:
Alex Petty 2020-05-20 19:30:52 -05:00
parent 7f339952cb
commit 895c7bc850

View file

@ -426,9 +426,13 @@ release/quake2 : LDFLAGS += -lexecinfo
endif endif
ifeq ($(WITH_RPATH),yes) ifeq ($(WITH_RPATH),yes)
ifeq ($(YQ2_OSTYPE), Darwin)
release/quake2 : LDFLAGS += -Wl,-rpath,'$$ORIGIN/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
# ---------- # ----------