aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gcc-interface/Make-lang.in
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/gcc-interface/Make-lang.in')
-rw-r--r--gcc/ada/gcc-interface/Make-lang.in8
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ada/gcc-interface/Make-lang.in b/gcc/ada/gcc-interface/Make-lang.in
index 4818f86..0d83ab8 100644
--- a/gcc/ada/gcc-interface/Make-lang.in
+++ b/gcc/ada/gcc-interface/Make-lang.in
@@ -122,7 +122,9 @@ ifeq ($(build), $(host))
# put the host RTS dir first in the PATH to hide the default runtime
# files that are among the sources
- RTS_DIR:=$(strip $(subst \,/,$(shell gnatls -v | grep adalib )))
+ ifneq ($(findstring ada,$(LANGUAGES)),)
+ RTS_DIR:=$(strip $(subst \,/,$(shell gnatls -v | grep adalib )))
+ endif
ADA_TOOLS_FLAGS_TO_PASS=\
CC="$(CC)" \
@@ -157,7 +159,9 @@ else
else
# This is a canadian cross. We should use a toolchain running on the
# build platform and targeting the host platform.
- RTS_DIR:=$(strip $(subst \,/,$(shell $(GNATLS_FOR_HOST) -v | grep adalib )))
+ ifneq ($(findstring ada,$(LANGUAGES)),)
+ RTS_DIR:=$(strip $(subst \,/,$(shell $(GNATLS_FOR_HOST) -v | grep adalib )))
+ endif
ADA_TOOLS_FLAGS_TO_PASS=\
CC="$(CC)" \
$(COMMON_FLAGS_TO_PASS) $(ADA_FLAGS_TO_PASS) \