diff options
Diffstat (limited to 'gdb/Makefile.dist')
-rwxr-xr-x | gdb/Makefile.dist | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gdb/Makefile.dist b/gdb/Makefile.dist index ffaa1f5..f777018 100755 --- a/gdb/Makefile.dist +++ b/gdb/Makefile.dist @@ -503,5 +503,12 @@ force_update : # When used with GDB, the demangler should never look for leading underscores # because GDB strips them off during symbol read-in. Thus -Dnounderscore. +# Adding "param.h" gets us the USG define without having to edit cplus-dem.c +# (which is used by other programs which may or may not have a "param.h"). +# (no newline is added, so line numbers still work right). cplus-dem.o : cplus-dem.c - ${CC} -c ${CFLAGS} -Dnounderscore `echo ${srcdir}/cplus-dem.c | sed 's,^\./,,'` + sed <`echo ${srcdir}/cplus-dem.c | sed 's,^\./,,'` \ + >cplus.tmp.c \ + '1s,^,#include "param.h" ,' + ${CC} -c ${CFLAGS} -Dnounderscore cplus.tmp.c + mv cplus.tmp.o cplus-dem.o |