diff mbox

backport r175089/r175108 to gcc-4_5-branch

Message ID 20110619011002.GA3560@bromo.med.uc.edu
State New
Headers show

Commit Message

Jack Howarth June 19, 2011, 1:10 a.m. UTC
Since the common config/mh-darwin file doesn't exist on gcc-4_5-branch, the following patch
creates a config/mh-x86-darwin to allow r175089 and r175108 to be effectively backported. This
change is worthwhile to provide darwin11 users access to dragonegg (since dragonegg doesn't
build on gcc 4.6.x yet). Bootstrap and regression tested on x86_64-apple-darwin11. Okay
for gcc-4_5-branch?
           Jack

2011-06-18  Jack Howarth <howarth@bromo.med.uc.edu>

	PR target/49461
	* configure.ac:  Use mh-x86-darwin.
	* configure: Regenerate.
	* config/mh-x86-darwin: Add file and pass -no_pie on BOOT_LDFLAGS for darwin11.

Comments

Mike Stump June 19, 2011, 6:01 p.m. UTC | #1
On Jun 18, 2011, at 6:10 PM, Jack Howarth wrote:
>   Since the common config/mh-darwin file doesn't exist on gcc-4_5-branch, the following patch
> creates a config/mh-x86-darwin to allow r175089 and r175108 to be effectively backported. This
> change is worthwhile to provide darwin11 users access to dragonegg (since dragonegg doesn't
> build on gcc 4.6.x yet). Bootstrap and regression tested on x86_64-apple-darwin11. Okay
> for gcc-4_5-branch?

Ok and applied.
diff mbox

Patch

Index: configure.ac
===================================================================
--- configure.ac	(revision 175182)
+++ configure.ac	(working copy)
@@ -1135,6 +1135,9 @@  case "${host}" in
     tentative_cc="/usr/cygnus/progressive/bin/gcc"
     host_makefile_frag="config/mh-lynxrs6k"
     ;;
+  i[[3456789]]86-*-darwin* | x86_64-*-darwin*)
+    host_makefile_frag="config/mh-x86-darwin"
+    ;;
   powerpc-*-darwin*)
     host_makefile_frag="config/mh-ppc-darwin"
     ;;

--- /dev/null	2011-06-18 11:57:42.000000000 -0400
+++ config/mh-x86-darwin	2011-06-18 11:52:12.000000000 -0400
@@ -0,0 +1,2 @@ 
+# Ensure we don't try and use -pie, as it is incompatible with pch.
+BOOT_LDFLAGS += `case ${host} in *-*-darwin[1][1-9]*) echo -Wl,-no_pie ;; esac;`