$OpenBSD: patch-src_modules_rlm_sql_drivers_rlm_sql_iodbc_configure,v 1.1 2008/01/21 22:21:24 rui Exp $
--- src/modules/rlm_sql/drivers/rlm_sql_iodbc/configure.orig	Sat Jan  5 17:14:36 2008
+++ src/modules/rlm_sql/drivers/rlm_sql_iodbc/configure	Mon Jan 21 16:21:32 2008
@@ -2639,8 +2639,8 @@ smart_lib=
 smart_lib_dir=
 
 if test "x$smart_try_dir" != "x"; then
-  for try in $smart_try_dir; do
-    LIBS="-L$try -liodbc $old_LIBS"
+  for try in $smart_try_dir /usr/local/lib; do
+    LIBS="-L$try -liodbc -pthread $old_LIBS"
     cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
