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]

[Ada] Allow gnatmake to construct libraries on x86_64-apple-darwin


Use of a library GPR (which works fine with i386-apple-darwin) fails with
"libraries are not supported on this platform".
This is because gnattools/configure uses the test
  powerpc-*-darwin* | *86-*-darwin*)
    TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-darwin.adb"
    ;;
The top-level configure uses *-*-darwin*, this should too.

I've tested this patch on both x86_64-apple-darwin10.2.0 and
i386-apple-darwin10.2.0.

2010-01-09  Simon Wright <simon@pushface.org>

	PR ada/42659
	* configure.ac: gnatmake can construct libraries in all native
	Darwin architectures.
	* configure: Regenerate.

Index: gnattools/configure
===================================================================
--- gnattools/configure	(revision 155732)
+++ gnattools/configure	(working copy)
@@ -2103,7 +2103,7 @@
     indepsw.adb<indepsw-mingw.adb"
     EXTRA_GNATTOOLS='../../gnatdll$(exeext)'
     ;;
-  powerpc-*-darwin* | *86-*-darwin*)
+  *-*-darwin*)
     TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-darwin.adb"
     ;;
   *-*-lynxos)
Index: gnattools/configure.ac
===================================================================
--- gnattools/configure.ac	(revision 155732)
+++ gnattools/configure.ac	(working copy)
@@ -143,7 +143,7 @@
     indepsw.adb<indepsw-mingw.adb"
     EXTRA_GNATTOOLS='../../gnatdll$(exeext)'
     ;;
-  powerpc-*-darwin* | *86-*-darwin*)
+  *-*-darwin*)
     TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-darwin.adb"
     ;;
   *-*-lynxos)


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