Fix make install-gcc-specs with empty GCC_SPECS_FILES
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Tue, 7 May 2019 15:19:26 +0000 (15:19 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Tue, 7 May 2019 15:19:26 +0000 (15:19 +0000)
* gcc-interface/Makefile.in (install-gcc-specs): Use foreach.
Honor DESTDIR.

From-SVN: r270947

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

index 6c8a13bcc9c3c96fb0ac33f9acc945f0fb145538..699ad4370b73069a364ad5eb6caf0d020203bec8 100644 (file)
@@ -1,3 +1,8 @@
+2019-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * gcc-interface/Makefile.in (install-gcc-specs): Use foreach.
+       Honor DESTDIR.
+
 2019-04-29  Michael K. Darling  <darlingm@gmail.com>
 
        * gnatvsn.ads: Bump Library_Version to 10.
index 4e74252bd7405e10b04cb2fcf4b8893964754023..a0a5bb2415f125906c9a46ac3ba4287ad19e1f01 100644 (file)
@@ -505,9 +505,8 @@ gnatlink-re: ../stamp-tools gnatmake-re
 install-gcc-specs:
 #      Install all the requested GCC spec files.
 
-       for f in $(GCC_SPEC_FILES); do \
-           $(INSTALL_DATA_DATE) $(srcdir)/ada/$$f $(libsubdir)/; \
-       done
+       $(foreach f,$(GCC_SPEC_FILES), \
+           $(INSTALL_DATA_DATE) $(srcdir)/ada/$(f) $(DESTDIR)$(libsubdir)/;)
 
 install-gnatlib: ../stamp-gnatlib-$(RTSDIR) install-gcc-specs
        $(RMDIR) $(DESTDIR)$(ADA_RTL_OBJ_DIR)