libns and libirs were underlinked (missing libisc, libdns, libisccfg)

Underlinking states for the situation when a binary uses a symbol not provided
by libraries it is directly linked to.  The libns was not linked to libisc and
libdns, and libirs was not linked to libisc, libdns and libisccfg) while using
symbols from these libraries directly.
This commit is contained in:
Ondřej Surý
2020-04-28 11:10:09 +02:00
committed by Ondřej Surý
parent 6f3edab604
commit b75778042f
2 changed files with 16 additions and 4 deletions

View File

@@ -25,6 +25,20 @@ CINCLUDES = -I. -I./include -I${srcdir}/include \
CDEFINES =
CWARNINGS =
ISCLIBS = ../../lib/isc/libisc.@A@ ${OPENSSL_LIBS} ${JSON_C_LIBS} ${LIBXML2_LIBS} ${ZLIB_LIBS}
ISCDEPLIBS = ../../lib/isc/libisc.@A@
DNSLIBS = ../../lib/dns/libdns.@A@ ${MAXMINDDB_LIBS} @DNS_CRYPTO_LIBS@
DNSDEPLIBS = ../../lib/dns/libdns.@A@
ISCCFGLIBS = ../../lib/isccfg/libisccfg.@A@
ISCCFGDEPLIBS = ../../lib/isccfg/libisccfg.@A@
LIBS = @LIBS@
# Alphabetically
OBJS = context.@O@ \
dnsconf.@O@ \
@@ -37,8 +51,6 @@ SRCS = context.c \
gai_strerror.c getaddrinfo.c getnameinfo.c \
resconf.c
LIBS = @LIBS@
SUBDIRS = include
TESTDIRS = @UNITTESTS@
TARGETS = timestamp
@@ -61,7 +73,7 @@ libirs.la: ${OBJS} version.@O@
${LIBTOOL_MODE_LINK} \
${CC} ${ALL_CFLAGS} ${LDFLAGS} -o libirs.la -rpath ${libdir} \
-version-info ${LIBINTERFACE}:${LIBREVISION}:${LIBAGE} \
${OBJS} version.@O@ ${LIBS}
${OBJS} version.@O@ ${ISCLIBS} ${DNSLIBS} ${ISCCFGLIBS} ${LIBS}
timestamp: libirs.@A@
touch timestamp

View File

@@ -74,7 +74,7 @@ libns.la: ${OBJS}
${LIBTOOL_MODE_LINK} \
${CC} ${ALL_CFLAGS} ${LDFLAGS} -o libns.la -rpath ${libdir} \
-version-info ${LIBINTERFACE}:${LIBREVISION}:${LIBAGE} \
${OBJS} ${ISCLIBS} @DNS_CRYPTO_LIBS@ ${LIBS}
${OBJS} ${ISCLIBS} ${DNSLIBS} @DNS_CRYPTO_LIBS@ ${LIBS}
timestamp: libns.@A@
touch timestamp