From 73f0204748dd2267f80150edd8cf9fcdf768b571 Mon Sep 17 00:00:00 2001 From: Doug Rupp Date: Tue, 15 Mar 2005 17:10:20 +0100 Subject: [PATCH] re PR ada/6852 (gnatlib fails to build with newlib because it doesn't set up the include path) 2005-03-08 Doug Rupp Bernard Banner Vincent Celier Arnaud Charlet PR ada/6852 This change works fine when gnatlib is built from the gcc directory, but does not work when using the libada Makefile, since GCC_FOR_TARGET is not passed to ada/Makefile.in, so more work is needed by a Makefile/configure expert. * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library. set GMEM_LIB on ia64 linux to add optional support for gnatmem. Setup gnatlink switch -M for x86_64 linux, as it is already setup for Linux x86. (gnatlib-shared-default): Use GNATLIBCFLAGS as well. Run ranlib on libgccprefix.a Define PREFIX_OBJS for Darwin, to build libgccprefix. (ADA_INCLUDE_SRCS): Split Ada packages. From-SVN: r96500 --- gcc/ada/Makefile.in | 33 ++++++++++++++++++++++++--------- 1 file changed, 24 insertions(+), 9 deletions(-) diff --git a/gcc/ada/Makefile.in b/gcc/ada/Makefile.in index 175fb0f2b21..59b6021fa46 100644 --- a/gcc/ada/Makefile.in +++ b/gcc/ada/Makefile.in @@ -1384,6 +1384,7 @@ ifeq ($(strip $(filter-out %ia64 linux%,$(arch) $(osys))),) MISCLIB= THREADSLIB=-lpthread GNATLIB_SHARED=gnatlib-shared-dual + GMEM_LIB = gmemlib PREFIX_OBJS=$(PREFIX_REAL_OBJS) LIBRARY_VERSION := $(LIB_VERSION) endif @@ -1427,7 +1428,10 @@ ifeq ($(strip $(filter-out %x86_64 linux%,$(arch) $(osys))),) s-taspri.ads