]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/49461 (boehm-gc and gcj incompatible with pie)
authorJack Howarth <howarth@bromo.med.uc.edu>
Sun, 19 Jun 2011 17:39:19 +0000 (17:39 +0000)
committerMike Stump <mrs@gcc.gnu.org>
Sun, 19 Jun 2011 17:39:19 +0000 (17:39 +0000)
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.

From-SVN: r175189

ChangeLog
config/mh-x86-darwin [new file with mode: 0644]
configure
configure.ac

index 8b357a70ba283bb3c86ad9bf698f4d89e5c0267f..05eb51b5e64081f1e5e06adbafb4858103d42031 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+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.
+
 2011-04-28  Release Manager
 
        * GCC 4.5.3 released.
diff --git a/config/mh-x86-darwin b/config/mh-x86-darwin
new file mode 100644 (file)
index 0000000..9666415
--- /dev/null
@@ -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;`
index c60f1b3eded813e5110575180fcb7dd884757f31..ac8fbdc5c595e1a8623200cb33879fb7bed39339 100755 (executable)
--- a/configure
+++ b/configure
@@ -3917,6 +3917,9 @@ fi
     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"
     ;;
index 35812aa45c95ffee0ec53a91be1408dcacfe2305..07d17c4d8aeed186d2045b56f4992053f7c9e775 100644 (file)
@@ -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"
     ;;