$OpenBSD: patch-Makefile_PL,v 1.4 2006/05/10 11:38:08 espie Exp $
--- Makefile.PL.orig	Wed May 10 11:35:05 2006
+++ Makefile.PL	Wed May 10 11:35:30 2006
@@ -115,7 +115,7 @@ WriteMakefile(
     'OBJECT'        => ($force_local) ? '$(O_FILES)' : 'SQLite.o dbdimp.o',
     'INC'           => '-I. -I$(DBI_INSTARCH_DIR)' .
                        (($sqlite_inc) ? " -I$sqlite_inc" : ''),
-    $force_local ? () : ('LIBS' => '-lsqlite3'),
+    $force_local ? () : ('LIBS' => "-L$sqlite_lib -lsqlite3"),
     $sqlite_lib  ? ('dynamic_lib' => { OTHERLDFLAGS => "-L$sqlite_lib" }) : (),
     'OPTIMIZE'      => "-O2",
     'DEFINE'        => "-DNDEBUG=1 -DSQLITE_PTR_SZ=$Config{ptrsize}" .
