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] |
Manually tested on irix, darwin, ia64-linux and solaris. Tested on i686-linux. Committed on mainline. PR ada/6852: We want to use GCC_FOR_TARGET instead of hard coding the target compiler to use for building gnatlib. 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. When building the shared library with additional CFLAGS (such as -m64 under Solaris), the creation of the shared library itself was not using these switches, causing a build failure when incompatible switches (e.g. ABI switches) are used. Test case is to build a gnatlib-shared under Solaris with GNATLIBCFLAGS set to "-m64". On MacOS, an archive (in this case libgccprefix.a) is not usable if ranlib is not used. The test is to build an Ada executable on MacOS that needs libgccprefix.a, with "-largs -lgccprefix". Since the recent addition of new Ada 2005 units, the number of files has grown too large for some unix shells with low command line length limits (e.g. IRIX). Fix this by splitting the pattern. 2005-03-08 Doug Rupp <rupp@adacore.com> Bernard Banner <banner@adacore.com> Vincent Celier <celier@adacore.com> Arnaud Charlet <charlet@adacore.com> 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.
Attachment:
difs.21
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |