From: Michael Brown Date: Mon, 2 Dec 2013 15:55:45 +0000 (+0000) Subject: [build] Fix building on OpenBSD 5.4 X-Git-Tag: v1.20.1~1342 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1403bda951807b2412e0617377e8542ebb4a28fa;p=thirdparty%2Fipxe.git [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 --- diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping index 8603bfd61..a49767edf 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