$OpenBSD: patch-auto_def,v 1.13 2021/04/01 16:02:57 jturner Exp $
Index: auto.def
--- auto.def.orig
+++ auto.def
@@ -289,7 +289,7 @@ if {[opt-bool with-th1-hooks]} {
 
 if {[opt-bool static]} {
     # XXX: This will not work on all systems.
-    define-append EXTRA_LDFLAGS -static
+    define-append EXTRA_LDFLAGS ${STATIC}
     msg-result "Trying to link statically"
 } else {
     define-append EXTRA_CFLAGS -DFOSSIL_DYNAMIC_BUILD=1
