Add a dependency on the appropriate $(GSSAPI_LIBS) and link in the
librxgk_pic.la helper. Careful control of what functions are exposed
allows static linking to continue to work when rxgk is disabled,
though a stub is needed for the case of rxgk_GetServerInfo, so that
there is a symbol present to satisfy the export symbol list.
Consumers of libafsrpc.a need not be modified in accordance
with this change.
Change-Id: I76c0329ba842fb0d4d66534810b114a0813c90a0
Reviewed-on: https://gerrit.openafs.org/10591
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
tests: rxtests ubiktests rpctestlib viced
# pthread based user space RX library
-libafsrpc: comerr fsint hcrypto lwp rx rxkad rxstat sys util
+libafsrpc: comerr fsint hcrypto lwp rx rxkad rxstat sys util rxgk
+case ${SYS_NAME} in \
sgi_*|sun4x_*|sunx86_*|rs_aix*|*linux*|hp_ux11*|ia64_hpux*|*[nof]bsd*) \
${COMPILE_PART1} libafsrpc ${COMPILE_PART2} ;; \
$(top_builddir)/src/rxstat/librxstat_pic.la \
$(top_builddir)/src/sys/libafsrpc_sys.la \
$(top_builddir)/src/lwp/liblwpcompat_pic.la \
- $(top_builddir)/src/opr/libopr_pic.la
+ $(top_builddir)/src/opr/libopr_pic.la \
+ @RXGK_LIBS_RPC@
-LT_deps =
-
-LT_libs = $(LIB_hcrypto) $(LIB_roken) $(MT_LIBS)
+LT_libs = $(LIB_hcrypto) $(LIB_roken) $(MT_LIBS) $(RXGK_GSSAPI_LIBS)
all: libafsrpc.la libafsrpc.a libafsrpc_pic.la \
$(TOP_LIBDIR)/libafsrpc.a \
rxevent_Init
rxevent_Post
rxevent_debugFile
+rxgk_GetServerInfo
rxi_Alloc
rxi_AllocDataBuf
rxi_Free