diff --git a/src/cf/roken.m4 b/src/cf/roken.m4 index 7426671624..2766b43125 100644 --- a/src/cf/roken.m4 +++ b/src/cf/roken.m4 @@ -4,6 +4,7 @@ AC_DEFUN([_OPENAFS_ROKEN_INTERNAL], [ CPPFLAGS_roken= LDFLAGS_roken="-L\$(TOP_LIBDIR)" LIB_roken=-lrokenafs + buildtool_roken="\$(TOP_OBJDIR)/src/roken/librokenafs.a" ]) dnl _OPENAFS_ROKEN_PATHS() @@ -18,7 +19,8 @@ AC_DEFUN([_OPENAFS_ROKEN_PATHS], [ [CPPFLAGS_roken="-I$roken_includedir"], [AS_IF([test x"$roken_root" != x], [CPPFLAGS_roken="-I$roken_root/include"])]) - LIB_roken="-lroken"]) + LIB_roken="-lroken" + buildtool_roken="$(LDFLAGS_roken) $(LIB_roken)"]) dnl _OPENAFS_ROKEN_CHECK($action-if-found, dnl $action-if-not-found) @@ -80,6 +82,7 @@ AC_DEFUN([OPENAFS_ROKEN], [ AC_SUBST(CPPFLAGS_roken) AC_SUBST(LDFLAGS_roken) AC_SUBST(DIR_roken) + AC_SUBST(buildtool_roken) AC_ARG_WITH([roken], [AS_HELP_STRING([--with-roken=DIR], diff --git a/src/config/Makefile.config.in b/src/config/Makefile.config.in index 317dd2522b..e453531472 100644 --- a/src/config/Makefile.config.in +++ b/src/config/Makefile.config.in @@ -63,6 +63,7 @@ LIB_crypt = @LIB_crypt@ LIB_curses = @LIB_curses@ LIB_hcrypto = @LIB_hcrypto@ LIB_roken = @LIB_roken@ +buildtool_roken = @buildtool_roken@ LIB_krb5 = @KRB5_LIBS@ LIB_gssapi = @GSSAPI_LIBS@ LIBTOOL= @LIBTOOL@