summaryrefslogtreecommitdiffstats
path: root/src/Makefile.housekeeping
diff options
context:
space:
mode:
authorMichael Brown2013-12-02 16:55:45 +0100
committerMichael Brown2013-12-02 16:58:38 +0100
commit1403bda951807b2412e0617377e8542ebb4a28fa (patch)
tree2ebaceb8adfd12a952025f9658d3b206c5aef320 /src/Makefile.housekeeping
parent[vesafb] Select an optimal mode, rather than the first acceptable mode (diff)
downloadipxe-1403bda951807b2412e0617377e8542ebb4a28fa.tar.gz
ipxe-1403bda951807b2412e0617377e8542ebb4a28fa.tar.xz
ipxe-1403bda951807b2412e0617377e8542ebb4a28fa.zip
[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 <jirib@devio.us> Tested-by: Jiri B <jirib@devio.us> Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/Makefile.housekeeping')
-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