re PR ada/56271 (GCC build errors when building ada and using LDFLAGS)

PR ada/56271
	Backport from mainline
	2012-05-15  Olivier Hainque  <hainque@adacore.com>

	* gcc-interface/Make-lang.in (COMMON_FLAGS_TO_PASS): Use WARN_CFLAGS
	instead of trying to mimic it.

From-SVN: r196178
This commit is contained in:
Eric Botcazou 2013-02-20 18:24:15 +00:00 committed by Eric Botcazou
parent ab6f72476c
commit f9dea37f97
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,12 @@
2013-02-20 Eric Botcazou <ebotcazou@adacore.com>
PR ada/56271
Backport from mainline
2012-05-15 Olivier Hainque <hainque@adacore.com>
* gcc-interface/Make-lang.in (COMMON_FLAGS_TO_PASS): Use WARN_CFLAGS
instead of trying to mimic it.
2013-02-14 Rainer Emrich <rainer@emrich-ebersheim.de>
Back-port from mainline.

View File

@ -68,7 +68,7 @@ ADA_RTL_OBJ_DIR = $(libsubdir)/adalib
THREAD_KIND=native
TRACE=no
# We do not want the WARN_CFLAGS of the compiler in Ada as it is for C/C++.
COMMON_FLAGS_TO_PASS = $(filter-out -pedantic -W%, $(FLAGS_TO_PASS))
COMMON_FLAGS_TO_PASS = $(filter-out $(WARN_CFLAGS), $(FLAGS_TO_PASS))
ADA_FLAGS_TO_PASS = \
"ADA_FOR_BUILD=$(ADA_FOR_BUILD)" \
"ADA_INCLUDE_DIR=$(ADA_INCLUDE_DIR)" \