From: Fabian Greffrath <fabian@debian.org>
Date: Tue, 29 Sep 2015 10:57:38 +0100
Subject: Remove unwanted rpaths from LDFLAGS

Forwarded: no, Debian-specific
---
 Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Makefile b/Makefile
index ceb08a6..84143d5 100755
--- a/Makefile
+++ b/Makefile
@@ -401,6 +401,7 @@ ifeq ($(YQ2_OSTYPE), FreeBSD)
 release/quake2 : LDFLAGS += -lexecinfo
 endif
 
+ifeq ($(WITH_RPATH),yes)
 ifeq ($(YQ2_OSTYPE), FreeBSD)
 release/quake2 : LDFLAGS += -Wl,-z,origin,-rpath='$$ORIGIN/lib' -lexecinfo
 else ifeq ($(YQ2_OSTYPE), Linux)
@@ -423,6 +424,7 @@ endif
 endif
 endif
 endif
+endif
 
 # ----------
 
