add support for automatic gdb launching when RC_DEBUG is defined to 1 to ease bug reporting / information gathering

This commit is contained in:
Mike Frysinger
2008-03-22 23:02:30 +00:00
parent 7beafe361a
commit bd34df6361
2 changed files with 41 additions and 0 deletions

View File

@@ -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