]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Make-lang.in: Allow s-oscons.{o,ali} to be built even without a separate libada direc...
authorThomas Quinot <quinot@adacore.com>
Sat, 30 Aug 2008 08:51:53 +0000 (08:51 +0000)
committerSamuel Tardieu <sam@gcc.gnu.org>
Sat, 30 Aug 2008 08:51:53 +0000 (08:51 +0000)
2008-08-30  Thomas Quinot  <quinot@adacore.com>

    gcc/ada/
* gcc-interface/Make-lang.in: Allow s-oscons.{o,ali} to
be built even without a separate libada directory.

From-SVN: r139799

gcc/ada/ChangeLog
gcc/ada/gcc-interface/Make-lang.in

index 4a9232ea9b2476f2ab3ac99a43fb4bc2c8641a62..745c8431e5d882691539288cc05d1abc1c38e245 100644 (file)
@@ -1,3 +1,8 @@
+2008-08-30  Thomas Quinot  <quinot@adacore.com>
+
+       * gcc-interface/Make-lang.in: Allow s-oscons.{o,ali} to
+       be built even without a separate libada directory.
+
 2008-08-22  Arnaud Charlet  <charlet@adacore.com>
 
        * lib-xref.ads: Fix typo in subprogram reference definition.
index 400171001283f4873b5c394aaabb52e205d25e16..c0b417f68f91a8aad118359f3c030631715b41d4 100644 (file)
@@ -933,9 +933,11 @@ OSCONS_EXTRACT=../../../$(DECC) -DNATIVE \
   ./s-oscons-tmplt.exe > s-oscons-tmplt.s
 
 else
-OSCONS_CPP=$(GCC_FOR_TARGET) $(CFLAGS_FOR_TARGET) -E -C \
+OSCONS_CC=`echo "$(GCC_FOR_TARGET)" \
+  | sed -e 's^\./xgcc^../../../xgcc^' -e 's^-B./^-B../../../^'`
+OSCONS_CPP=$(OSCONS_CC) $(CFLAGS_FOR_TARGET) -E -C \
   -DTARGET=\"$(target)\" s-oscons-tmplt.c > s-oscons-tmplt.i
-OSCONS_EXTRACT=$(GCC_FOR_TARGET) $(CFLAGS_FOR_TARGET) -S s-oscons-tmplt.i
+OSCONS_EXTRACT=$(OSCONS_CC) $(CFLAGS_FOR_TARGET) -S s-oscons-tmplt.i
 endif
 
 ada/s-oscons.ads : ada/s-oscons-tmplt.c ada/gsocket.h ada/xoscons.adb ada/xutil.ads ada/xutil.adb