Makefile.in (targ): Fix target name check.
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 23 Apr 2013 16:16:03 +0000 (16:16 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Tue, 23 Apr 2013 16:16:03 +0000 (18:16 +0200)
2013-04-23  Eric Botcazou  <ebotcazou@adacore.com>
    Pascal Obry    <obry@adacore.com>

* gcc-interface/Makefile.in (targ): Fix target name check.
(../../gnatmake$(exeext)): Add '+' for LTO.
(../../gnatlink$(exeext)): Likewise.

Co-Authored-By: Pascal Obry <obry@adacore.com>
From-SVN: r198200

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

index f914728..3992484 100644 (file)
@@ -1,3 +1,10 @@
+2013-04-23  Eric Botcazou  <ebotcazou@adacore.com>
+           Pascal Obry    <obry@adacore.com>
+
+       * gcc-interface/Makefile.in (targ): Fix target name check.
+       (../../gnatmake$(exeext)): Add '+' for LTO.
+       (../../gnatlink$(exeext)): Likewise.
+
 2013-04-23  Hristian Kirtchev  <kirtchev@adacore.com>
 
        * exp_ch9.adb (Build_PPC_Wrapper): Correct the traversal of
index b5c4fb4..94ac634 100644 (file)
@@ -259,7 +259,7 @@ TOOLS_LIBS = targext.o link.o ../../ggc-none.o ../../libcommon-target.a \
 # manufacturer, and operating system and assign each of those to its own
 # variable.
 host:=$(subst -, ,$(host_canonical))
-targ:=$(subst -, ,$(target))
+targ:=$(subst -, ,$(subst -gnu, ,$(target_alias)))
 arch:=$(word 1,$(targ))
 ifeq ($(words $(targ)),2)
   manu:=
@@ -2519,11 +2519,11 @@ gnatlink-re: ../stamp-tools link.o targext.o gnatmake-re
 
 # Likewise for the tools
 ../../gnatmake$(exeext): $(P) b_gnatm.o link.o targext.o $(GNATMAKE_OBJS)
-       $(GCC_LINK) $(ALL_CFLAGS) $(LDFLAGS) -o $@ b_gnatm.o $(GNATMAKE_OBJS) \
+       +$(GCC_LINK) $(ALL_CFLAGS) $(LDFLAGS) -o $@ b_gnatm.o $(GNATMAKE_OBJS) \
                    $(TOOLS_LIBS)
 
 ../../gnatlink$(exeext): $(P) b_gnatl.o link.o targext.o $(GNATLINK_OBJS)
-       $(GCC_LINK) $(ALL_CFLAGS) $(LDFLAGS) -o $@ b_gnatl.o $(GNATLINK_OBJS) \
+       +$(GCC_LINK) $(ALL_CFLAGS) $(LDFLAGS) -o $@ b_gnatl.o $(GNATLINK_OBJS) \
                    $(TOOLS_LIBS)
 
 ../stamp-gnatlib-$(RTSDIR):