Fix static linking.

This commit is contained in:
christos 2020-05-25 15:12:54 +00:00
parent c9049e9bbf
commit 05de94e1a2
1 changed files with 5 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.6 2020/05/24 19:46:10 christos Exp $
# $NetBSD: Makefile.inc,v 1.7 2020/05/25 15:12:54 christos Exp $
.if !defined(BIND9_MAKEFILE_INC)
BIND9_MAKEFILE_INC=yes
@ -66,12 +66,13 @@ DBG=-g3 -gstabs
.if !defined(LIB) || empty(LIB)
# NOTE: the order of these libraries is important...
.if defined(NAMED_DEBUG)
LDADD+= -lbind9_g -lisccfg_g -ldns_g -lns_g -lirs_g -lisccc_g -lisc_g -lz_g
LDADD+= -lbind9_g -lisccfg_g -ldns_g -lns_g -lirs_g
LDADD+= -lisccc_g -lisc_g -luv_g -lkvm_g -lz_g
.else
LDADD+= -lbind9 -lisccfg -ldns -lns -lirs
DPADD+= ${LIBBIND9} ${LIBISCCFG} ${LIBDNS} ${LIBNS} ${LIBIRS}
LDADD+= -lisccc -lisc -luv -lz
DPADD+= ${LIBISCCC} ${LIBISC} ${LIBUV} ${LIBZ}
LDADD+= -lisccc -lisc -luv -lkvm -lz
DPADD+= ${LIBISCCC} ${LIBISC} ${LIBUV} ${LIBKVM} ${LIBZ}
.endif
.else
CPPFLAGS+= -DLIBINTERFACE=${LIBINTERFACE} \