summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-06-21 19:05:20 +0000
committerobrien <obrien@FreeBSD.org>2002-06-21 19:05:20 +0000
commite2bd215de79a284658e76b57d17115b64046354b (patch)
treefc802c6284a5b149127774a87941bc43a490343d /gnu
parent4f18776a5d9e5e1a183be648509f61f462bc54ed (diff)
downloadFreeBSD-src-e2bd215de79a284658e76b57d17115b64046354b.zip
FreeBSD-src-e2bd215de79a284658e76b57d17115b64046354b.tar.gz
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
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/binutils/gdb/Makefile8
1 files changed, 4 insertions, 4 deletions
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
OpenPOWER on IntegriCloud