From: Russ Allbery Date: Tue, 13 Jul 2010 20:42:01 +0000 (-0700) Subject: Link libafsauthent with -lresolv if required X-Git-Tag: debian/1.5.75-2~4 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=5eef9a6784a5c5cc0795c4deceb9b39b1ef24fb1;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 (cherry picked from commit 57d727da233252477c16a34cf628f6764534b8bc) --- diff --git a/src/shlibafsauthent/Makefile.in b/src/shlibafsauthent/Makefile.in index 4efe703be..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 -lresolv -lcrypt ${LIBOBJS} ${MT_LIBS} + -L${TOP_LIBDIR} -lafsrpc ${LIBOBJS} ${LIB_AFSDB} ${MT_LIBS} libafsauthent_pic.a: ${LIBOBJS} $(RM) -f $@