$OpenBSD: patch-configure,v 1.8 2018/11/06 17:24:42 rsadowski Exp $
Index: configure
--- configure.orig
+++ configure
@@ -5299,7 +5299,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.  */
 
@@ -5333,7 +5333,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
