]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* gcc-interface/Make-lang.in (RTS_DIR): Define only if Ada is enabled.
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 11 Dec 2012 08:03:13 +0000 (08:03 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 11 Dec 2012 08:03:13 +0000 (08:03 +0000)
From-SVN: r194384

gcc/ada/ChangeLog
gcc/ada/gcc-interface/Make-lang.in

index 7e1208f0e52931e12985f2b275108fb0f676ad7d..bf9ce42175665d4b24f63e37a21dd3da0658d122 100644 (file)
@@ -1,3 +1,7 @@
+2012-12-11  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * gcc-interface/Make-lang.in (RTS_DIR): Define only if Ada is enabled.
+
 2012-12-08  Eric Botcazou  <ebotcazou@adacore.com>
 
        * gcc-interface/trans.c (gnat_to_gnu) <N_Indexed_Component>: Assert
index 4818f86a21f60311a30a584cdbcd0fb3ad90f35c..0d83ab8820809f919267717b864284963ed70cba 100644 (file)
@@ -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)  \