diff --git a/Makefile b/Makefile index be727417..b41cc1aa 100755 --- a/Makefile +++ b/Makefile @@ -426,9 +426,13 @@ release/quake2 : LDFLAGS += -lexecinfo endif 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' endif endif +endif # ----------