From 1403bda951807b2412e0617377e8542ebb4a28fa Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 2 Dec 2013 15:55:45 +0000 Subject: [build] Fix building on OpenBSD 5.4 OpenBSD 5.4 seems to generate dynamically linked binaries by default, which breaks our build process. Fix by forcing the linker to always create static binaries. Reported-by: Jiri B Tested-by: Jiri B Signed-off-by: Michael Brown --- src/Makefile.housekeeping | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/Makefile.housekeeping') 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 -- cgit v1.2.3-55-g7522