_library_paths

Makefile.in: be explicit about library paths

    Debian policy requires that all dependent libs be in the .so, not just the
    immediately depended ones.

    Signed-off-by: LaMont Jones <lamont@debian.org>

Gbp-Pq: Name 0004-library_paths.diff
This commit is contained in:
Debian DNS Packaging 2017-11-24 16:26:54 +00:00 committed by Lu zhiping
parent 665eb07067
commit f5bef0945c
5 changed files with 13 additions and 4 deletions

View File

@ -38,7 +38,7 @@ ISCLIBS = ../../lib/isc/libisc.@A@
ISCDEPLIBS = ../../lib/isc/libisc.@A@
LIBS = ${MAXMINDDB_LIBS} @LIBS@
LIBS = ${MAXMINDDB_LIBS} @LIBS@ -L../../lib/isc -lcrypto
# Alphabetically
@ -159,6 +159,7 @@ libdns.la: ${OBJS}
${CC} ${ALL_CFLAGS} ${LDFLAGS} -o libdns.la -rpath ${libdir} \
-version-info ${LIBINTERFACE}:${LIBREVISION}:${LIBAGE} \
${OBJS} ${ISCLIBS} @DNS_CRYPTO_LIBS@ ${LIBS}
ln -sf .libs/libdns.so .
include: gen
${MAKE} include/dns/enumtype.h
@ -212,6 +213,7 @@ clean distclean::
newrr::
rm -f code.h include/dns/enumtype.h include/dns/enumclass.h
rm -f include/dns/rdatastruct.h
rm -f libdns.so
rdata.@O@: include

View File

@ -36,7 +36,7 @@ SRCS = context.c \
gai_strerror.c getaddrinfo.c getnameinfo.c \
resconf.c
LIBS = @LIBS@
LIBS = @LIBS@ -L../../lib/isc -L../../lib/dns -L../../lib/isccfg -lcrypto -lisc -ldns -lisccfg
SUBDIRS = include
TESTDIRS = @UNITTESTS@
@ -61,6 +61,7 @@ libirs.la: ${OBJS} version.@O@
${CC} ${ALL_CFLAGS} ${LDFLAGS} -o libirs.la -rpath ${libdir} \
-version-info ${LIBINTERFACE}:${LIBREVISION}:${LIBAGE} \
${OBJS} version.@O@ ${LIBS}
ln -sf .libs/libirs.so .
timestamp: libirs.@A@
touch timestamp
@ -78,3 +79,4 @@ uninstall::
clean distclean::
rm -f libirs.@A@ libirs.la timestamp
rm -f libdns.so

View File

@ -120,12 +120,14 @@ libisc.la: ${OBJS} ${SYMTBLOBJS}
${CC} ${ALL_CFLAGS} ${LDFLAGS} -o libisc.la -rpath ${libdir} \
-version-info ${LIBINTERFACE}:${LIBREVISION}:${LIBAGE} \
${OBJS} ${SYMTBLOBJS} ${LIBS}
ln -sf .libs/libisc.so .
libisc-nosymtbl.la: ${OBJS}
${LIBTOOL_MODE_LINK} \
${CC} ${ALL_CFLAGS} ${LDFLAGS} -o libisc-nosymtbl.la -rpath ${libdir} \
-version-info ${LIBINTERFACE}:${LIBREVISION}:${LIBAGE} \
${OBJS} ${LIBS}
ln -sf .libs/libisc-nosymtbl.so .
timestamp: libisc.@A@ libisc-nosymtbl.@A@
touch timestamp
@ -144,3 +146,4 @@ uninstall::
clean distclean::
rm -f libisc.@A@ libisc-nosymtbl.@A@ libisc.la \
libisc-nosymtbl.la timestamp
rm -f libisc.so libisc-nosymtbl.so

View File

@ -29,7 +29,7 @@ ISCCCLIBS = ../../lib/isccc/libisccc.@A@
ISCDEPLIBS = ../../lib/isc/libisc.@A@
ISCCCDEPLIBS = libisccc.@A@
LIBS = @LIBS@
LIBS = @LIBS@ -L../../lib/isc
SUBDIRS = include
@ -66,6 +66,7 @@ libisccc.la: ${OBJS}
${CC} ${ALL_CFLAGS} ${LDFLAGS} -o libisccc.la -rpath ${libdir} \
-version-info ${LIBINTERFACE}:${LIBREVISION}:${LIBAGE} \
${OBJS} ${ISCLIBS} ${LIBS}
ln -sf .libs/libisccc.so .
timestamp: libisccc.@A@
touch timestamp
@ -83,3 +84,4 @@ uninstall::
clean distclean::
rm -f libisccc.@A@ timestamp
rm -f libisccc.so

View File

@ -29,7 +29,7 @@ ISCCFGLIBS = ../../lib/cfg/libisccfg.@A@
ISCDEPLIBS = ../../lib/isc/libisc.@A@
ISCCFGDEPLIBS = libisccfg.@A@
LIBS = @LIBS@
LIBS = @LIBS@ -L../dns -L../isc -L../isccc
SUBDIRS = include
TESTDIRS = @UNITTESTS@