Don't use the private version of vasprintf(). It doesn't understand

"%%" in format strings and tends to dump core for "%%st".  I needed
"%%st" to fix the new gdb ...

Don't use the private version of strerror() either.

Use INTERNALLIB and INTERNALSTATICLIB instead of a private install
rules NOPROFILE and NOPIC.  This is only slightly cleaner.
INTERNALLIB was previously only used in compatibility libraries
(libgnumalloc etc.) and INTERNALSTATICLIB was previously unused.
INTERNAL*LIB probably should be replaced by something like NOSTATICO
together with NO{STATICO,PROFILE,PIC}INSTALL.
This commit is contained in:
bde 1997-02-15 16:14:52 +00:00
parent 43616d773f
commit 421db166e7

View File

@ -1,18 +1,15 @@
LIB= iberty
INTERNALLIB= true
INTERNALSTATICLIB= true
GDBDIR= ${.CURDIR}/../../../../contrib/gdb
.PATH: ${GDBDIR}/libiberty
SRCS= argv.c basename.c concat.c cplus-dem.c fdmatch.c getopt.c \
getopt1.c getruntime.c hex.c floatformat.c obstack.c spaces.c \
strerror.c strsignal.c vasprintf.c xatexit.c xexit.c \
getopt1.c getruntime.c hex.c obstack.c spaces.c \
strsignal.c xatexit.c xexit.c \
xmalloc.c xstrdup.c xstrerror.c insque.c
CFLAGS+= -I$(.CURDIR) -I$(.CURDIR)/../gdb/.
NOPROFILE=no
NOPIC=no
install:
@echo -n
.include <bsd.lib.mk>