$OpenBSD: patch-third_party_sqlite_BUILD_gn,v 1.5 2018/06/06 07:50:54 robert Exp $

Index: third_party/sqlite/BUILD.gn
--- third_party/sqlite/BUILD.gn.orig
+++ third_party/sqlite/BUILD.gn
@@ -155,7 +155,7 @@ config("sqlite_warnings") {
     # sqlite3Fts3InitTok).
     cflags += [ "-Wno-unused-function" ]
   }
-  if (is_linux) {
+  if (is_linux && !is_openbsd) {
     cflags += [
       # SQLite doesn"t believe in compiler warnings,
       # preferring testing.
@@ -243,7 +243,7 @@ component("chromium_sqlite3") {
     ":sqlite_warnings",
   ]
 
-  if (is_linux) {
+  if (is_linux && !is_openbsd) {
     libs = [ "dl" ]
   } else if (is_mac || is_ios) {
     libs = [ "CoreFoundation.framework" ]
