From: Russ Allbery Date: Tue, 13 Jul 2010 20:42:01 +0000 (-0700) Subject: Link libafsauthent with -lresolv if required X-Git-Tag: openafs-devel-1_5_76~131 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=57d727da233252477c16a34cf628f6764534b8bc;p=packages%2Fo%2Fopenafs.git Link libafsauthent with -lresolv if required libafsauthent includes auth/cellconfig.c, which uses res_search, so it requires -lresolv even if it isn't needed for gethostbyname. Add LIB_AFSDB to the link line for libafsauthent. Change-Id: I4dafdf83db9a00e4e30bff7c59357c13bf7af961 Reviewed-on: http://gerrit.openafs.org/2402 Tested-by: Derrick Brashear Tested-by: Jason Edgecombe Reviewed-by: Derrick Brashear --- diff --git a/src/shlibafsauthent/Makefile.in b/src/shlibafsauthent/Makefile.in index 48a9a3e57..3a8a402f2 100644 --- a/src/shlibafsauthent/Makefile.in +++ b/src/shlibafsauthent/Makefile.in @@ -133,7 +133,7 @@ dest: ${LIBAFSAUTHENT} libafsauthent_pic.a ${LIBAFSAUTHENT}: ${LIBOBJS} libafsauthent.map ../config/shlib-build -d $(srcdir) -l libafsauthent \ -M ${LIBAFSAUTHENTMAJOR} -m ${LIBAFSAUTHENTMINOR} -- \ - -L${TOP_LIBDIR} -lafsrpc ${LIBOBJS} ${MT_LIBS} + -L${TOP_LIBDIR} -lafsrpc ${LIBOBJS} ${LIB_AFSDB} ${MT_LIBS} libafsauthent_pic.a: ${LIBOBJS} $(RM) -f $@