From d24c3ef231c8df4dbeaec755e13d5671982f7eda Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Tue, 6 Nov 2018 08:42:56 +0000 Subject: [PATCH] re PR ada/81878 (--disable-bootstrap --enable-languages=ada fails) PR ada/81878 Revert 2018-10-29 Tamar Christina PR ada/81878 * Makefile.in (TOOLS_FLAGS_TO_PASS_NATIVE): Add -B ../../. 2017-08-17 Richard Biener PR ada/81878 * Makefile.in (CXX_LFLAGS): Remove. (TOOLS_FLAGS_TO_PASS_NATIVE): Pass $(CXX) as CXX. (TOOLS_FLAGS_TO_PASS_RE): Likewise. From-SVN: r265830 --- gnattools/ChangeLog | 16 ++++++++++++++++ gnattools/Makefile.in | 13 ++++++++----- 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/gnattools/ChangeLog b/gnattools/ChangeLog index 3aa0461138b..ca75cf00234 100644 --- a/gnattools/ChangeLog +++ b/gnattools/ChangeLog @@ -1,3 +1,19 @@ +2018-11-06 Eric Botcazou + + PR ada/81878 + Revert + 2018-10-29 Tamar Christina + + PR ada/81878 + * Makefile.in (TOOLS_FLAGS_TO_PASS_NATIVE): Add -B ../../. + + 2017-08-17 Richard Biener + + PR ada/81878 + * Makefile.in (CXX_LFLAGS): Remove. + (TOOLS_FLAGS_TO_PASS_NATIVE): Pass $(CXX) as CXX. + (TOOLS_FLAGS_TO_PASS_RE): Likewise. + 2018-10-31 Joseph Myers PR bootstrap/82856 diff --git a/gnattools/Makefile.in b/gnattools/Makefile.in index 8a98a2d0b18..b0860eaf96d 100644 --- a/gnattools/Makefile.in +++ b/gnattools/Makefile.in @@ -69,13 +69,16 @@ INCLUDES_FOR_SUBDIR = -iquote . -iquote .. -iquote ../.. \ -iquote $(fsrcdir) -I$(ftop_srcdir)/include ADA_INCLUDES_FOR_SUBDIR = -I. -I$(fsrcdir)/ada +CXX_LFLAGS = \ + -B../../../$(target_noncanonical)/libstdc++-v3/src/.libs \ + -B../../../$(target_noncanonical)/libstdc++-v3/libsupc++/.libs \ + -L../../../$(target_noncanonical)/libstdc++-v3/src/.libs \ + -L../../../$(target_noncanonical)/libstdc++-v3/libsupc++/.libs + # Variables for gnattools, native -# Due to Windows path translations (See PR ada/81878) we need to add -# -B../../ to the compiler paths as a workaround for that $(CXX) contains -# Unix style paths that won't be translated by the runtime. TOOLS_FLAGS_TO_PASS_NATIVE= \ "CC=../../xgcc -B../../" \ - "CXX=$(CXX) -B../../" \ + "CXX=../../xg++ -B../../ $(CXX_LFLAGS)" \ "CFLAGS=$(CFLAGS) $(WARN_CFLAGS)" \ "LDFLAGS=$(LDFLAGS)" \ "ADAFLAGS=$(ADAFLAGS)" \ @@ -93,7 +96,7 @@ TOOLS_FLAGS_TO_PASS_NATIVE= \ # Variables for regnattools TOOLS_FLAGS_TO_PASS_RE= \ "CC=../../xgcc -B../../" \ - "CXX=$(CXX)" \ + "CXX=../../xg++ -B../../ $(CXX_LFLAGS)" \ "CFLAGS=$(CFLAGS)" \ "LDFLAGS=$(LDFLAGS)" \ "ADAFLAGS=$(ADAFLAGS)" \