$OpenBSD: patch-configure,v 1.7 2018/09/14 15:45:35 rsadowski Exp $
Index: configure
--- configure.orig
+++ configure
@@ -5300,7 +5300,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.  */
 
@@ -5334,7 +5334,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
