This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Two build != host fixes
- From: Iain Sandoe <iain at codesourcery dot com>
- To: Eric Botcazou <ebotcazou at adacore dot com>
- Cc: <gcc-patches at gcc dot gnu dot org>, Bernd Edlinger <bernd dot edlinger at hotmail dot de>, Alan Modra <amodra at gmail dot com>, Jakub Jelinek <jakub at redhat dot com>, DJ Delorie <dj at redhat dot com>
- Date: Thu, 12 Dec 2013 17:04:59 +0000
- Subject: Re: Two build != host fixes
- Authentication-results: sourceware.org; auth=none
- References: <DUB122-W49C1420F5ADBBBFF956A3EE4DD0 at phx dot gbl> <2692820 dot ixbfJi4BCR at polaris> <F53A4012-9C34-498D-989A-3EEF53CAB994 at codesourcery dot com> <1623967 dot KxXie3nkJm at polaris>
On 12 Dec 2013, at 15:23, Eric Botcazou wrote:
>> Darwin doesn't have gettext in libSystem, I build it as a convenience
>> library, but it still needs to refer to a system framework. For this to
>> link the gnattools I need:
>>
>> LDFLAGS="-L/path/to/my/convenience/lib -framework CoreFoundation"
>
> OK, I'll add $(LDFLAGS). It was actually already passed in the native case…
I ran the gnat testsuite (it didn't quite work 'out of the box' for installed - but of fiddling symlinks was enough)
results as per normal (m32 only tested)
With your blanket change to gnattools/Makefile, isn't it also reasonable to apply the following?
Iain
diff --git a/gcc/ada/gcc-interface/Make-lang.in b/gcc/ada/gcc-interface/Make-lang.in
index cd3676f..241571d 100644
--- a/gcc/ada/gcc-interface/Make-lang.in
+++ b/gcc/ada/gcc-interface/Make-lang.in
@@ -152,12 +152,6 @@ ifeq ($(build), $(host))
# This is a regular cross compiler. Use the native compiler to compile
# the tools.
- # put the host RTS dir first in the PATH to hide the default runtime
- # files that are among the sources
- ifneq ($(findstring ada,$(LANGUAGES)),)
- RTS_DIR:=$(strip $(subst \,/,$(shell gnatls -v | grep adalib )))
- endif
-
ADA_TOOLS_FLAGS_TO_PASS=\
CC="$(CC)" \
CXX="$(CXX)" \
@@ -193,9 +187,6 @@ else
else
# This is a canadian cross. We should use a toolchain running on the
# build platform and targeting the host platform.
- ifneq ($(findstring ada,$(LANGUAGES)),)
- RTS_DIR:=$(strip $(subst \,/,$(shell $(GNATLS_FOR_HOST) -v | grep adalib )))
- endif
ADA_TOOLS_FLAGS_TO_PASS=\
CC="$(CC)" \
CXX="$(CXX)" \