]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Link libafsauthent with -lresolv if required
authorRuss Allbery <rra@stanford.edu>
Tue, 13 Jul 2010 20:42:01 +0000 (13:42 -0700)
committerRuss Allbery <rra@debian.org>
Wed, 14 Jul 2010 18:31:00 +0000 (11:31 -0700)
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 <shadow@dementia.org>
Tested-by: Jason Edgecombe <jason@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 57d727da233252477c16a34cf628f6764534b8bc)

src/shlibafsauthent/Makefile.in

index 4efe703bee798d68603d1f5a493a89946a298541..3a8a402f244476ac98396134aaddc0242563fe66 100644 (file)
@@ -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 $@