summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/Makefile.housekeeping5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping
index 8603bfd6..a49767ed 100644
--- a/src/Makefile.housekeeping
+++ b/src/Makefile.housekeeping
@@ -500,6 +500,11 @@ CFLAGS += $(FS_FLAGS) $(DS_FLAGS)
endif
LDFLAGS += --gc-sections
+# Force creation of static binaries (required for OpenBSD, does no
+# harm on other platforms).
+#
+LDFLAGS += -static
+
# compiler.h is needed for our linking and debugging system
#
CFLAGS += -include include/compiler.h