diff options
author | obrien <obrien@FreeBSD.org> | 2001-09-26 20:51:51 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2001-09-26 20:51:51 +0000 |
commit | f047e940b4d23960be499fd51803d1894fb4ed01 (patch) | |
tree | e83cd0f7eb26b5513fc10141b0e4ab71dad823fd /gnu | |
parent | 9eed33b6434e112b2461310924a8851634e765ec (diff) | |
download | FreeBSD-src-f047e940b4d23960be499fd51803d1894fb4ed01.zip FreeBSD-src-f047e940b4d23960be499fd51803d1894fb4ed01.tar.gz |
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
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/binutils/libiberty/Makefile | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gnu/usr.bin/binutils/libiberty/Makefile b/gnu/usr.bin/binutils/libiberty/Makefile index 5fd956e..e7279e8 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 |