--- ./configure.orig	2021-07-23 02:50:57 +0000
+++ ./configure	2021-07-23 02:54:50 +0000
@@ -13637,7 +13637,7 @@
     as_fn_error $? "Could not find GSSAPI development libraries" "$LINENO" 5
 else
     GSSAPI_CFLAGS="`$KRB5_CONFIG --cflags gssapi`"
-    GSSAPI_LIBS="`$KRB5_CONFIG --libs gssapi`"
+    GSSAPI_LIBS="$LDFLAGS -Wl,-brtl -lpthreads /opt/freeware/lib/libgssapi_krb5.a /opt/freeware/lib/libkrb5.a /opt/freeware/lib/libk5crypto.a /opt/freeware/lib/libcom_err.a"
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_accept_sec_context in -lgssapi_krb5" >&5
 $as_echo_n "checking for gss_accept_sec_context in -lgssapi_krb5... " >&6; }
@@ -13645,7 +13645,7 @@
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lgssapi_krb5  $LIBS"
+LIBS="/opt/freeware/lib/libgssapi_krb5.a  $LIBS"
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
@@ -13680,7 +13680,7 @@
 #define HAVE_LIBGSSAPI_KRB5 1
 _ACEOF
 
-  LIBS="-lgssapi_krb5 $LIBS"
+  LIBS="/opt/freeware/lib/libgssapi_krb5.a $LIBS"
 
 else
   as_fn_error $? "GSSAPI library check failed" "$LINENO" 5
