Makefile.in (targ): Fix target name check.

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
This commit is contained in:
Eric Botcazou 2013-04-23 16:16:03 +00:00 committed by Arnaud Charlet
parent 2921237485
commit 2a30e7e200
2 changed files with 10 additions and 3 deletions

View 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> 2013-04-23 Hristian Kirtchev <kirtchev@adacore.com>
* exp_ch9.adb (Build_PPC_Wrapper): Correct the traversal of * exp_ch9.adb (Build_PPC_Wrapper): Correct the traversal of

View 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 # manufacturer, and operating system and assign each of those to its own
# variable. # variable.
host:=$(subst -, ,$(host_canonical)) host:=$(subst -, ,$(host_canonical))
targ:=$(subst -, ,$(target)) targ:=$(subst -, ,$(subst -gnu, ,$(target_alias)))
arch:=$(word 1,$(targ)) arch:=$(word 1,$(targ))
ifeq ($(words $(targ)),2) ifeq ($(words $(targ)),2)
manu:= manu:=
@ -2519,11 +2519,11 @@ gnatlink-re: ../stamp-tools link.o targext.o gnatmake-re
# Likewise for the tools # Likewise for the tools
../../gnatmake$(exeext): $(P) b_gnatm.o link.o targext.o $(GNATMAKE_OBJS) ../../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) $(TOOLS_LIBS)
../../gnatlink$(exeext): $(P) b_gnatl.o link.o targext.o $(GNATLINK_OBJS) ../../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) $(TOOLS_LIBS)
../stamp-gnatlib-$(RTSDIR): ../stamp-gnatlib-$(RTSDIR):