$OpenBSD: patch-auto_def,v 1.7 2017/07/25 14:01:36 jturner Exp $
--- auto.def.orig
+++ auto.def
@@ -185,7 +185,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
