summaryrefslogtreecommitdiff
path: root/tools/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/Makefile')
-rw-r--r--tools/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/Makefile b/tools/Makefile
index 64179fd706..86ba72ddac 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -37,10 +37,15 @@ include $(LEVEL)/Makefile.config
ifeq ($(ENABLE_PIC),1)
# No support for dynamic libraries on windows targets.
ifneq ($(TARGET_OS), $(filter $(TARGET_OS), Cygwin MingW))
- PARALLEL_DIRS += lto edis
- # gold only builds if binutils is around.
+ PARALLEL_DIRS += edis
+
+ # gold only builds if binutils is around. It requires "lto" to build before
+ # it so it is added to DIRS.
ifdef BINUTILS_INCDIR
PARALLEL_DIRS += gold
+ DIRS += lto
+ else
+ PARALLEL_DIRS += lto
endif
endif
endif