summaryrefslogtreecommitdiffstats
path: root/src/Makefile.housekeeping
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile.housekeeping')
-rw-r--r--src/Makefile.housekeeping7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping
index 7d7bbebc..ba01f16d 100644
--- a/src/Makefile.housekeeping
+++ b/src/Makefile.housekeeping
@@ -106,6 +106,13 @@ $(warning export LANG=$${LANG%.UTF-8})
$(error Unsuitable build environment found)
endif
+LD_GOLD_BANNER := $(shell $(LD) -v 2>&1 | grep 'GNU gold')
+ifneq ($(LD_GOLD_BANNER),)
+$(warning GNU gold is unsuitable for building iPXE)
+$(warning Use GNU ld instead)
+$(error Unsuitable build environment found)
+endif
+
###############################################################################
#
# Check for various tool workarounds