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
This commit is contained in:
parent
9eed33b643
commit
f047e940b4
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user