libada: Fix shared library installation with `--disable-libada'
authorMaciej W. Rozycki <macro@wdc.com>
Sun, 22 Dec 2019 00:15:44 +0000 (00:15 +0000)
committerMaciej W. Rozycki <macro@gcc.gnu.org>
Sun, 22 Dec 2019 00:15:44 +0000 (00:15 +0000)
Provide a default value of $(toolexeclibdir) for $(ADA_RTL_DSO_DIR), so
that in a `--disable-libada' configuration `make install' places shared
gnatlib libraries, built with `make -C gcc gnatlib-shared', in their
intended version-specific location, fixing a commit r276424 ("libada:
Respect `--enable-version-specific-runtime-libs'") regression.

gcc/ada/
* gcc-interface/Makefile.in (toolexeclibdir): New variable.

From-SVN: r279702

gcc/ada/ChangeLog
gcc/ada/gcc-interface/Makefile.in

index bfc838f48f2fb2738941628501c75e8fc8befb03..5e92f1ac2e0fcdaf209010cc1cd1434fe02b917e 100644 (file)
@@ -1,3 +1,7 @@
+2019-12-22  Maciej W. Rozycki  <macro@wdc.com>
+
+       * gcc-interface/Makefile.in (toolexeclibdir): New variable.
+
 2019-12-18  Eric Botcazou  <ebotcazou@adacore.com>
 
        * gcc-interface/trans.c (Pragma_to_gnu) <Pragma_Warnings>: Push a
index 8deffb6eb36387e0a829d3ebfa08d1dc493582ad..3342e33b4b17d439a4c1185ad4d309fbb3ff02f9 100644 (file)
@@ -880,6 +880,12 @@ b_gnatm.o : b_gnatm.adb
        $(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) -gnatws -gnatyN \
            $< $(OUTPUT_OPTION)
 
+# Provide a `toolexeclibdir' definition for when `gnat-install-lib' is
+# wired through gcc/ in a configuration with top-level libada disabled.
+# It will be overridden with the value configured when `gnat-install-lib'
+# is invoked through libada/.
+toolexeclibdir = $(ADA_RTL_OBJ_DIR)
+
 ADA_INCLUDE_DIR = $(libsubdir)/adainclude
 ADA_RTL_OBJ_DIR = $(libsubdir)/adalib
 ADA_RTL_DSO_DIR = $(toolexeclibdir)