Link libafsauthent with -lresolv if required
authorRuss Allbery <rra@stanford.edu>
Tue, 13 Jul 2010 20:42:01 +0000 (13:42 -0700)
committerDerrick Brashear <shadow@dementia.org>
Tue, 13 Jul 2010 22:14:14 +0000 (15:14 -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>

src/shlibafsauthent/Makefile.in

index 48a9a3e..3a8a402 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 ${LIBOBJS} ${MT_LIBS}
+               -L${TOP_LIBDIR} -lafsrpc ${LIBOBJS} ${LIB_AFSDB} ${MT_LIBS}
 
 libafsauthent_pic.a: ${LIBOBJS}
        $(RM) -f $@