PR ada/64492
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Jan 2015 10:17:12 +0000 (10:17 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Jan 2015 10:17:12 +0000 (10:17 +0000)
* gcc-interface/Makefile.in (../stamp-tools): Reinstate dropped code.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@219183 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 4e10baf..3ff202b 100644 (file)
@@ -1,3 +1,8 @@
+2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
+
+       PR ada/64492
+       * gcc-interface/Makefile.in (../stamp-tools): Reinstate dropped code.
+
 2015-01-04  Uros Bizjak  <ubizjak@gmail.com>
 
        * gcc-interface/misc.c (internal_error_function): Use xasprintf instead
index a407919..eb24f11 100644 (file)
@@ -2481,9 +2481,16 @@ GCC_LINK=$(CXX) $(GCC_LINK_FLAGS) $(ADA_INCLUDES) $(LDFLAGS)
 # Build directory for the tools. Let's copy the target-dependent
 # sources using the same mechanism as for gnatlib. The other sources are
 # accessed using the vpath directive below
-# Note: dummy target, stamp-tools is mainly handled by gnattools.
 
 ../stamp-tools:
+       -$(RM) tools/*
+       -$(RMDIR) tools
+       -$(MKDIR) tools
+       -(cd tools; $(LN_S) ../sdefault.adb ../snames.ads ../snames.adb .)
+       -$(foreach PAIR,$(TOOLS_TARGET_PAIRS), \
+                 $(RM) tools/$(word 1,$(subst <, ,$(PAIR)));\
+                 $(LN_S) $(fsrcpfx)ada/$(word 2,$(subst <, ,$(PAIR))) \
+                       tools/$(word 1,$(subst <, ,$(PAIR)));)
        touch ../stamp-tools
 
 # when compiling the tools, the runtime has to be first on the path so that