[Gd-hackers] Mac OSX Intel Patch

Dwight Holman anonfunc at gmail.com
Mon May 22 11:03:42 CEST 2006


Patch in message, please review for mistakes in platforms.descr.
Binaries are available from the official sources.
--Dwight

Patch follows, applied in src/ with `patch -p1`:

diff -Naur src/configure.in src2/configure.in
--- src/configure.in	2006-05-22 08:24:23.000000000 +0000
+++ src2/configure.in	2006-05-22 08:48:56.000000000 +0000
@@ -133,6 +133,11 @@
 	     4.*) $2=ppc-darwin-gcc4 ;;
 	     *)   $2=ppc-darwin-gcc ;;
 	esac ;;
+    i*86-apple-darwin*)
+	case `gcc -dumpversion` in
+	    4.*) $2=intel-darwin-gcc4 ;;
+	    *) $2=intel-darwin-gcc ;;
+	esac ;;
     mips-sgi-irix*) $2=mips-irix-gcc ;;
     i*86-*-netbsd*) $2=x86-netbsd-gcc ;;
     *) $2=unknown-unix ;;
diff -Naur src/d2c/compiler/platforms.descr src2/d2c/compiler/platforms.descr
--- src/d2c/compiler/platforms.descr	2006-05-22 08:24:23.000000000 +0000
+++ src2/d2c/compiler/platforms.descr	2006-05-22 08:49:04.000000000 +0000
@@ -716,6 +716,22 @@
 long-double-size:		16
 long-double-alignment:		16

+platform-name:			intel-darwin-gcc
+inherit-from:			gcc darwin x86
+default-c-compiler-flags:	-I. -I%s -O2 -fomit-frame-pointer
-no-cpp-precomp -Wno-long-double
+default-c-compiler-debug-flags:	-I. -I%s -g -O -fno-inline-functions
-no-cpp-precomp -Wno-long-double
+default-c-compiler-profile-flags:	-I. -I%s -pg -g -O
-fno-inline-functions -no-cpp-precomp -Wno-long-double
+link-executable-flags:          $(GC_LIBS) -multiply_defined suppress
+long-long-alignment:		4
+long-double-size:		16
+long-double-alignment:		16
+
+platform-name:			intel-darwin-gcc4
+inherit-from:			intel-darwin-gcc
+default-c-compiler-flags:	-I. -I%s -Os -fomit-frame-pointer
-no-cpp-precomp -Wno-long-double
+long-double-size:		16
+long-double-alignment:		16
+
 // Douglas M. Auclair's cygnus port (doug at cotilliongroup.com)
 platform-name:			x86-cygnus-gcc
 inherit-from:			gcc x86 cygnus



More information about the hackers mailing list