aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rc/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rc/Makefile b/src/rc/Makefile
index 567541ed..e73cd713 100644
--- a/src/rc/Makefile
+++ b/src/rc/Makefile
@@ -33,7 +33,7 @@ CLEANFILES+= ${ALL_LINKS}
LDFLAGS+= -L../librc -L../libeinfo
LDADD+= -lutil -lrc -leinfo
#CFLAGS+= -ggdb
-#LDFLAGS+= -Wl,--rpath=../librc -Wl,--rpath=../libeinfo
+LDFLAGS+= $(shell test -d ../../.git && echo -Wl,--rpath=../librc -Wl,--rpath=../libeinfo)
MK= ../../mk
include ${MK}/prog.mk