aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-03-22 23:00:32 +0000
committerMike Frysinger <vapier@gentoo.org>2008-03-22 23:00:32 +0000
commit5dcdfcdf7a5a4df6196ad87741f7a0a9e270926d (patch)
tree5d650cf87481d492dbf4f8f4b27e4aadb6ea1ccf /src
parenta4f9eb699b915c90ac93a4a9af4de5456085c26c (diff)
add local rpaths if in the git tree
Diffstat (limited to 'src')
-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