summaryrefslogtreecommitdiff
path: root/gcc/configure
diff options
context:
space:
mode:
authoriains <iains@138bc75d-0d04-0410-961f-82ee72b054a4>2010-11-04 10:43:47 +0000
committeriains <iains@138bc75d-0d04-0410-961f-82ee72b054a4>2010-11-04 10:43:47 +0000
commit16463c8dccb07d1219cca1c3bfba4a68fe4e87fc (patch)
tree01087337e00efbd28d652e41b8b6ad30963b110e /gcc/configure
parentf07666e1203a50ae445025050b7e12311db6bbd0 (diff)
downloadgcc-16463c8dccb07d1219cca1c3bfba4a68fe4e87fc.tar.gz
enable mdynamic-no-pic bootstrap for x86 Darwin
* configure.ac (*-*-darwin*): Use mh-darwin for all Darwin variants. * configure: Regenerate. * config/mh-ppc-darwin: Rename to mh-darwin. gcc: * gcc/configure.ac: Filter -mdynamic-no-pic from CFLAGS when testing for plugin capabilities. * gcc/configure: Regenerate. gcc/testsuite: * lib/plugin-support.exp (plugin-test-execute): Filter -mdynamic-no-pic from plugin build flags on Darwin targets. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166302 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/configure')
-rwxr-xr-xgcc/configure7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/configure b/gcc/configure
index a4d8a217705..e39b946811d 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -25956,11 +25956,15 @@ fi
# Check that we can build shared objects with -fPIC -shared
saved_LDFLAGS="$LDFLAGS"
+ saved_CFLAGS="$CFLAGS"
case "${host}" in
*-*-darwin*)
- LDFLAGS="$LDFLAGS -fPIC -shared -undefined dynamic_lookup"
+ CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
+ CFLAGS="$CFLAGS -fPIC"
+ LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
;;
*)
+ CFLAGS="$CFLAGS -fPIC"
LDFLAGS="$LDFLAGS -fPIC -shared"
;;
esac
@@ -25991,6 +25995,7 @@ rm -f core conftest.err conftest.$ac_objext \
enable_plugin=no
fi
LDFLAGS="$saved_LDFLAGS"
+ CFLAGS="$saved_CFLAGS"
# If plugin support had been requested but not available, fail.
if test x"$enable_plugin" = x"no" ; then