$OpenBSD: patch-build_config_BUILD_gn,v 1.24 2021/04/16 18:15:05 robert Exp $

Index: build/config/BUILD.gn
--- build/config/BUILD.gn.orig
+++ build/config/BUILD.gn
@@ -78,7 +78,7 @@ config("feature_flags") {
   if (use_x11) {
     defines += [ "USE_X11=1" ]
   }
-  if (is_asan || is_hwasan || is_lsan || is_tsan || is_msan) {
+  if (is_asan || is_hwasan || is_lsan || is_tsan || is_msan || is_openbsd) {
     defines += [ "MEMORY_TOOL_REPLACES_ALLOCATOR" ]
   }
   if (is_asan) {
@@ -230,7 +230,7 @@ config("default_libs") {
       "CoreText.framework",
       "Foundation.framework",
     ]
-  } else if (is_linux || is_chromeos) {
+  } else if ((is_linux && !is_openbsd) || is_chromeos) {
     libs = [
       "dl",
       "pthread",
