aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile.housekeeping
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2013-12-02 15:55:45 +0000
committerMichael Brown <mcb30@ipxe.org>2013-12-02 15:58:38 +0000
commit1403bda951807b2412e0617377e8542ebb4a28fa (patch)
tree2ebaceb8adfd12a952025f9658d3b206c5aef320 /src/Makefile.housekeeping
parentd4f7816de7dda2cb1477014c9dacb9247bc81a20 (diff)
downloadipxe-1403bda951807b2412e0617377e8542ebb4a28fa.tar.gz
[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 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