From e2bd215de79a284658e76b57d17115b64046354b Mon Sep 17 00:00:00 2001 From: obrien Date: Fri, 21 Jun 2002 19:05:20 +0000 Subject: We need to link with libiberty.a before libreadline.so. Both supply xmalloc() and xrealloc() and the mixed usage of xmalloc in some .c's from libiberty.a and other .c's from libreadline.so produces an unusable binary on the Alpha. While I am here, preventatively move other libs in the link order. Submitted by: gallatin --- gnu/usr.bin/binutils/gdb/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gnu/usr.bin') diff --git a/gnu/usr.bin/binutils/gdb/Makefile b/gnu/usr.bin/binutils/gdb/Makefile index 4f02ce3..be5c544 100644 --- a/gnu/usr.bin/binutils/gdb/Makefile +++ b/gnu/usr.bin/binutils/gdb/Makefile @@ -40,16 +40,16 @@ CFLAGS+= -I${GDBDIR}/gdb CFLAGS+= -I${GDBDIR}/gdb/config DPADD= ${RELTOP}/libbfd/libbfd.a DPADD+= ${RELTOP}/libopcodes/libopcodes.a -DPADD+= ${LIBREADLINE} +DPADD+= ${LIBTERMCAP} DPADD+= ${LIBGNUREGEX} DPADD+= ${RELTOP}/libiberty/libiberty.a -DPADD+= ${LIBTERMCAP} +DPADD+= ${LIBREADLINE} LDADD+= ${RELTOP}/libbfd/libbfd.a LDADD+= ${RELTOP}/libopcodes/libopcodes.a -LDADD+= -lreadline +LDADD+= -ltermcap LDADD+= -lgnuregex LDADD+= ${RELTOP}/libiberty/libiberty.a -LDADD+= -ltermcap +LDADD+= -lreadline GDBDIR= ${.CURDIR}/../../../../contrib/gdb .PATH: ${GDBDIR}/gdb -- cgit v1.1