$OpenBSD: patch-configure,v 1.10 2016/10/31 11:12:04 ajacoutot Exp $
--- configure.orig	Sun Oct 30 17:04:05 2016
+++ configure	Mon Oct 31 12:06:11 2016
@@ -24270,7 +24270,7 @@ if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\"
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-l$ax_lib  $LIBS"
+LIBS="-l$ax_lib -L${LOCALBASE}/lib -lpython${MODPY_VERSION} -lm -lutil $LIBS"
 cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
