$OpenBSD: patch-configure,v 1.2 2017/06/03 16:24:05 steven Exp $
Index: configure
--- configure.orig
+++ configure
@@ -11915,8 +11915,8 @@ if  test -z "$GCC" ; then
    DEBUG="-g $CFLAGS"
    PROFILE="-g -p $CFLAGS"
 else
-   DEBUG="-g -std=gnu99 $CFLAGS"
-   PROFILE="-g -p -std=gnu99 $CFLAGS"
+   DEBUG="$DEBUG -std=gnu99"
+   PROFILE="$PROFILE -g -p -std=gnu99"
    CFLAGS="-std=gnu99 $CFLAGS"
 fi
 
@@ -12528,7 +12528,7 @@ else :
 fi
 		SQLITE3_LDFLAGS=""
 	else
-		SQLITE3_LIBS=-lsqlite
+		SQLITE3_LIBS=-lsqlite3
 		SQLITE3_LDFLAGS=-L$ac_sqlite3_libdir
 	fi
 
