$OpenBSD: patch-configure,v 1.9 2021/05/17 05:17:42 rsadowski Exp $
Index: configure
--- configure.orig
+++ configure
@@ -5294,7 +5294,7 @@ if ${ac_cv_lib_ofx_ofx_set_status_cb+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lofx  $LIBS"
+LIBS="`pkg-config --libs libofx`  $LIBS"
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
@@ -5328,7 +5328,7 @@ if test "x$ac_cv_lib_ofx_ofx_set_status_cb" = xyes; th
   OFX_0_7="-DOFX_ENABLE"
 fi
 
-        DEPS_LIBS="-lofx ${DEPS_LIBS}"
+        DEPS_LIBS="`pkg-config --libs libofx` ${DEPS_LIBS}"
         CFLAGS="${CFLAGS} $OFX_0_7"
     else
         noofx=true
