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 <howa...@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.



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;`

Reply via email to