From 7d437141baf91df531952bf875476f41e9573c0b Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Wed, 26 Sep 2001 20:51:51 +0000 Subject: [PATCH] Unconditionally use basename.c source vs. only doing this if the libc we are linking against does not have basename(). There is a buffer overflow bug in lib/libc/gen/basename.c rev 1.1. There is no way for us to test what revision of basename() we have in libc, thus this change. Requested by: ru --- gnu/usr.bin/binutils/libiberty/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gnu/usr.bin/binutils/libiberty/Makefile b/gnu/usr.bin/binutils/libiberty/Makefile index 5fd956e9c022..e7279e8fcea7 100644 --- a/gnu/usr.bin/binutils/libiberty/Makefile +++ b/gnu/usr.bin/binutils/libiberty/Makefile @@ -10,8 +10,7 @@ SRCS= argv.c choose-temp.c concat.c cp-demangle.c cplus-dem.c \ hex.c floatformat.c lbasename.c objalloc.c obstack.c safe-ctype.c \ xatexit.c xexit.c xmalloc.c \ xstrdup.c xstrerror.c -LIBC_BASENAME!= ar tv /usr/lib/libc.a | grep basename -.if ${LIBC_BASENAME} == "" +.if defined(BOOTSTRAPPING) SRCS+= basename.c .endif CFLAGS+= -DHAVE_CONFIG_H