+ # No support for dynamic libraries on windows targets.
+ ifneq ($(TARGET_OS), $(filter $(TARGET_OS), Cygwin MingW))
+ # gold only builds if binutils is around. It requires "lto" to build before
+ # it so it is added to DIRS.
+ ifdef BINUTILS_INCDIR
+ DIRS += lto gold
+ else
+ PARALLEL_DIRS += lto
+ endif
+ endif
+endif
+
+# Don't build edis if we explicitly disabled it.
+ifeq ($(DISABLE_EDIS),1)
+ PARALLEL_DIRS := $(filter-out edis, $(PARALLEL_DIRS))