aboutsummaryrefslogtreecommitdiffstats
path: root/tools/Rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'tools/Rules.mk')
-rw-r--r--tools/Rules.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/Rules.mk b/tools/Rules.mk
index 75948a3cdd..f7dda356b5 100644
--- a/tools/Rules.mk
+++ b/tools/Rules.mk
@@ -55,6 +55,9 @@ CFLAGS += -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
LDFLAGS += $(shell getconf LFS_LDFLAGS)
endif
+# Xen tools build is currently incompatible with ld --as-needed
+LDFLAGS += -Wl,--no-as-needed
+
# 32-bit x86 does not perform well with -ve segment accesses on Xen.
CFLAGS-$(CONFIG_X86_32) += $(call cc-option,$(CC),-mno-tls-direct-seg-refs)
CFLAGS += $(CFLAGS-y)