From 01950bb64fca1cc8a403d80b1eff72ecdb7b70a4 Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Mon, 14 Feb 2005 12:10:14 +0000 Subject: [PATCH] Use the system gnuregex library vs. building GNU regex bits into libiberty and using them. Reviewed by: marcel,imp Desired by: ache --- gnu/usr.bin/binutils/libiberty/Makefile | 2 +- gnu/usr.bin/gdb/gdb/Makefile | 4 ++-- gnu/usr.bin/gdb/gdbtui/Makefile | 4 ++-- gnu/usr.bin/gdb/kgdb/Makefile | 4 ++-- gnu/usr.bin/gdb/libgdb/Makefile | 5 +++++ 5 files changed, 12 insertions(+), 7 deletions(-) diff --git a/gnu/usr.bin/binutils/libiberty/Makefile b/gnu/usr.bin/binutils/libiberty/Makefile index 37895aa4aca4..292d1fcbe733 100644 --- a/gnu/usr.bin/binutils/libiberty/Makefile +++ b/gnu/usr.bin/binutils/libiberty/Makefile @@ -12,7 +12,7 @@ SRCS= argv.c concat.c choose-temp.c cp-demangle.c cp-demint.c \ xexit.c xmalloc.c xstrdup.c xstrerror.c # The following files are needed by gdb(1) -SRCS+= regex.c splay-tree.c +SRCS+= splay-tree.c WARNS?= 1 CFLAGS+= -DHAVE_CONFIG_H diff --git a/gnu/usr.bin/gdb/gdb/Makefile b/gnu/usr.bin/gdb/gdb/Makefile index b4ca070023c7..ef9e13574661 100644 --- a/gnu/usr.bin/gdb/gdb/Makefile +++ b/gnu/usr.bin/gdb/gdb/Makefile @@ -11,7 +11,7 @@ GDBLIBS= ${OBJ_GDB}/libgdb/libgdb.a # global symbols visible. LDFLAGS+= -Wl,-E -DPADD= ${GDBLIBS} ${BULIBS} ${LIBM} ${LIBREADLINE} ${LIBTERMCAP} -LDADD= ${GDBLIBS} ${BULIBS} -lm -lreadline -ltermcap +DPADD= ${GDBLIBS} ${BULIBS} ${LIBM} ${LIBREADLINE} ${LIBTERMCAP} ${LIBGNUREGEX} +LDADD= ${GDBLIBS} ${BULIBS} -lm -lreadline -ltermcap -lgnuregex .include diff --git a/gnu/usr.bin/gdb/gdbtui/Makefile b/gnu/usr.bin/gdb/gdbtui/Makefile index 02efc6702e5f..4a01eae71ce5 100644 --- a/gnu/usr.bin/gdb/gdbtui/Makefile +++ b/gnu/usr.bin/gdb/gdbtui/Makefile @@ -12,7 +12,7 @@ GDBLIBS= ${OBJ_GDB}/libgdb/libgdb.a # global symbols visible. LDFLAGS+= -Wl,-E -DPADD= ${GDBLIBS} ${BULIBS} ${LIBM} ${LIBREADLINE} ${LIBTERMCAP} -LDADD= ${GDBLIBS} ${BULIBS} -lm -lreadline -ltermcap +DPADD= ${GDBLIBS} ${BULIBS} ${LIBM} ${LIBREADLINE} ${LIBTERMCAP} ${LIBGNUREGEX} +LDADD= ${GDBLIBS} ${BULIBS} -lm -lreadline -ltermcap -lgnuregex .include diff --git a/gnu/usr.bin/gdb/kgdb/Makefile b/gnu/usr.bin/gdb/kgdb/Makefile index 4eb144215b93..404b960f0f08 100644 --- a/gnu/usr.bin/gdb/kgdb/Makefile +++ b/gnu/usr.bin/gdb/kgdb/Makefile @@ -8,7 +8,7 @@ BULIBS= ${OBJ_BU}/libbfd/libbfd.a ${OBJ_BU}/libopcodes/libopcodes.a \ ${OBJ_BU}/libiberty/libiberty.a GDBLIBS= ${OBJ_GDB}/libgdb/libgdb.a -DPADD= ${GDBLIBS} ${BULIBS} ${LIBKVM} ${LIBM} ${LIBREADLINE} ${LIBTERMCAP} -LDADD= ${GDBLIBS} ${BULIBS} -lkvm -lm -lreadline -ltermcap +DPADD= ${GDBLIBS} ${BULIBS} ${LIBKVM} ${LIBM} ${LIBREADLINE} ${LIBTERMCAP} ${LIBGNUREGEX} +LDADD= ${GDBLIBS} ${BULIBS} -lkvm -lm -lreadline -ltermcap -lgnuregex .include diff --git a/gnu/usr.bin/gdb/libgdb/Makefile b/gnu/usr.bin/gdb/libgdb/Makefile index 0a7fad659ebf..e9e92cac200a 100644 --- a/gnu/usr.bin/gdb/libgdb/Makefile +++ b/gnu/usr.bin/gdb/libgdb/Makefile @@ -48,6 +48,11 @@ SRCS= annotate.c arch-utils.c auxv.c ax-gdb.c ax-general.c \ valarith.c valops.c valprint.c values.c varobj.c \ wrapper.c ${LIBSRCS} +.for stupid_gnu in \ +xregcomp xre_exec xregexec xre_search xre_compile_fastmap xregerror xre_comp xre_set_syntax +CFLAGS+= -D${stupid_gnu}=${stupid_gnu:S/^x//} +.endfor + .if ${TARGET_ARCH} == ${MACHINE_ARCH} _fork_child= fork-child.c _infptrace= infptrace.c