]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[build] Fix building on OpenBSD 5.4
authorMichael Brown <mcb30@ipxe.org>
Mon, 2 Dec 2013 15:55:45 +0000 (15:55 +0000)
committerMichael Brown <mcb30@ipxe.org>
Mon, 2 Dec 2013 15:58:38 +0000 (15:58 +0000)
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 <jirib@devio.us>
Tested-by: Jiri B <jirib@devio.us>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/Makefile.housekeeping

index 8603bfd61fd6b330385487fadb0a1f3221afc9d6..a49767edf02cb50662fabf7e900534f8068ccfd9 100644 (file)
@@ -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