Make-lang.in: Use GCC_FOR_TARGET when dealing with s-oscons-tmplt.i.

gcc/ada/
	* gcc-interface/Make-lang.in: Use GCC_FOR_TARGET when dealing
	with s-oscons-tmplt.i.

    libada/
	* Makefile.in: Pass FLAGS_TO_PASS to sub-make for target
	oscons.

From-SVN: r138800
This commit is contained in:
Samuel Tardieu 2008-08-06 13:55:07 +00:00 committed by Samuel Tardieu
parent 6a69bcf49d
commit 6f371a2e41
4 changed files with 15 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2008-08-06 Samuel Tardieu <sam@rfc1149.net>
* gcc-interface/Make-lang.in: Use GCC_FOR_TARGET when dealing
with s-oscons-tmplt.i.
2008-08-06 Samuel Tardieu <sam@rfc1149.net>
* gcc-interface/Make-lang.in (OSCONS_CPPFLAGS): Remove.

View File

@ -933,9 +933,9 @@ OSCONS_EXTRACT=../../../$(DECC) -DNATIVE \
./s-oscons-tmplt.exe > s-oscons-tmplt.s
else
OSCONS_CPP=../../../xgcc -B../../../ -E -C \
OSCONS_CPP=$(GCC_FOR_TARGET) -E -C \
-DTARGET=\"$(target)\" s-oscons-tmplt.c > s-oscons-tmplt.i
OSCONS_EXTRACT=../../../xgcc -S -B../../../ s-oscons-tmplt.i
OSCONS_EXTRACT=$(GCC_FOR_TARGET) -S s-oscons-tmplt.i
endif
ada/s-oscons-$(THREAD_KIND).ads : ada/s-oscons-tmplt.c ada/gsocket.h ada/xoscons.adb ada/xutil.ads ada/xutil.adb

View File

@ -1,3 +1,8 @@
2008-08-06 Samuel Tardieu <sam@rfc1149.net>
* Makefile.in: Pass FLAGS_TO_PASS to sub-make for target
oscons.
2008-08-06 Thomas Quinot <quinot@adacore.com>
* Makefile.in: Now generate s-oscons-$(THREAD_KIND).

View File

@ -94,7 +94,9 @@ gnatlib-sjlj gnatlib-zcx gnatlib-shared: oscons $(GCC_DIR)/ada/Makefile
&& touch stamp-libada
oscons:
$(MAKE) -C $(GCC_DIR) THREAD_KIND="$(THREAD_KIND)" ada/s-oscons-$(THREAD_KIND).ads
$(MAKE) -C $(GCC_DIR) THREAD_KIND="$(THREAD_KIND)" \
$(FLAGS_TO_PASS) \
ada/s-oscons-$(THREAD_KIND).ads
# Check uninstalled version.
check: