This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Two build != host fixes


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)" \




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]