Fix library order so that -static will work.

This commit is contained in:
matt 2003-10-25 18:24:23 +00:00
parent a68b9ea2bd
commit 3e45a9f0c7
1 changed files with 10 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.5 2003/09/26 17:51:18 christos Exp $
# $NetBSD: Makefile,v 1.6 2003/10/25 18:24:23 matt Exp $
.include <bsd.own.mk>
@ -35,8 +35,8 @@ SRCS+= ${G_TUI_OBJS:.o=.c}
CPPFLAGS+= -DUSE_TUI
.endif
LDADD= -lcurses -ltermcap -lintl -lm -lkvm
DPADD= ${LIBCURSES} ${LIBTERMCAP} ${LIBINTL} ${LIBM} ${LIBKVM}
LDADD= -lcurses -lintl -lm -lkvm
DPADD= ${LIBCURSES} ${LIBINTL} ${LIBM} ${LIBKVM}
.if ${SRCS:Mnbsd-thread.c} != ""
LDADD+= -lpthread_dbg
@ -75,8 +75,15 @@ LIBEDIT= -L${LIBREADLINEDIR} -lreadline
LDADD+= -L${LIBOPCODESDIR} -lopcodes\
-L${LIBBFDDIR} -lbfd \
${LIBEDIT} \
-ltermcap \
-L${LIBIBERTYDIR} -liberty \
DPADD+= ${LIBOPCODESDIR}/libopcodes.a \
${LIBBFDDIR}/libbfd.a \
${LIBEDIT} \
${LIBTERMCAP} \
${LIBIBERTYDIR}/libiberty.a \
.PATH: ${DIST}/gdb ${DIST}/gdb/mi ${DIST}/gdb/cli ${DIST}/gdb/tui \
${DIST}/gdb/signals ${DIST}/gdb/doc ${.CURDIR}/../arch/${MACHINE_ARCH}