From: Rainer Orth Date: Tue, 7 May 2019 15:19:26 +0000 (+0000) Subject: Fix make install-gcc-specs with empty GCC_SPECS_FILES X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=339197c7f32538a4e0e39edf5846ae8a660144a4;p=gcc.git Fix make install-gcc-specs with empty GCC_SPECS_FILES * gcc-interface/Makefile.in (install-gcc-specs): Use foreach. Honor DESTDIR. From-SVN: r270947 --- diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 6c8a13bcc9c..699ad4370b7 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,8 @@ +2019-05-07 Rainer Orth + + * gcc-interface/Makefile.in (install-gcc-specs): Use foreach. + Honor DESTDIR. + 2019-04-29 Michael K. Darling * gnatvsn.ads: Bump Library_Version to 10. diff --git a/gcc/ada/gcc-interface/Makefile.in b/gcc/ada/gcc-interface/Makefile.in index 4e74252bd74..a0a5bb2415f 100644 --- a/gcc/ada/gcc-interface/Makefile.in +++ b/gcc/ada/gcc-interface/Makefile.in @@ -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)