aboutsummaryrefslogtreecommitdiff
path: root/src/rc/Makefile
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-03-22 23:02:30 +0000
committerMike Frysinger <vapier@gentoo.org>2008-03-22 23:02:30 +0000
commitbd34df63613a368698dca3465a2f05273e120c5f (patch)
tree3050599c0dcec840474b1cb8cb29fe641e85b2be /src/rc/Makefile
parent7beafe361a7f9f06a620a05770821f5650c2c4b0 (diff)
add support for automatic gdb launching when RC_DEBUG is defined to 1 to ease bug reporting / information gathering
Diffstat (limited to 'src/rc/Makefile')
-rw-r--r--src/rc/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rc/Makefile b/src/rc/Makefile
index e73cd713..2779a447 100644
--- a/src/rc/Makefile
+++ b/src/rc/Makefile
@@ -33,6 +33,7 @@ CLEANFILES+= ${ALL_LINKS}
LDFLAGS+= -L../librc -L../libeinfo
LDADD+= -lutil -lrc -leinfo
#CFLAGS+= -ggdb
+CPPFLAGS+= $(shell test "x$(DEBUG)" = x && echo -DRC_DEBUG=0 || echo -DRC_DEBUG=1)
LDFLAGS+= $(shell test -d ../../.git && echo -Wl,--rpath=../librc -Wl,--rpath=../libeinfo)
MK= ../../mk