diff options
author | Iain Sandoe <iains@gcc.gnu.org> | 2010-11-04 10:43:47 +0000 |
---|---|---|
committer | Iain Sandoe <iains@gcc.gnu.org> | 2010-11-04 10:43:47 +0000 |
commit | d8ed14ce4ecb92c728dca62a02090d5cf6f10fcf (patch) | |
tree | 01087337e00efbd28d652e41b8b6ad30963b110e /gcc/testsuite/lib | |
parent | 0e6ac87ebaf95910b2a816aaddc80ed9f0d00fb4 (diff) | |
download | gcc-d8ed14ce4ecb92c728dca62a02090d5cf6f10fcf.zip gcc-d8ed14ce4ecb92c728dca62a02090d5cf6f10fcf.tar.gz gcc-d8ed14ce4ecb92c728dca62a02090d5cf6f10fcf.tar.bz2 |
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.
From-SVN: r166302
Diffstat (limited to 'gcc/testsuite/lib')
-rw-r--r-- | gcc/testsuite/lib/plugin-support.exp | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/gcc/testsuite/lib/plugin-support.exp b/gcc/testsuite/lib/plugin-support.exp index 9444f52..2e689a6 100644 --- a/gcc/testsuite/lib/plugin-support.exp +++ b/gcc/testsuite/lib/plugin-support.exp @@ -86,15 +86,29 @@ proc plugin-test-execute { plugin_src plugin_tests } { -I${gcc_srcdir}/include -I${gcc_srcdir}/libcpp/include \ $GMPINC -I${gcc_objdir}/intl" - set optstr "$includes $extra_flags -DIN_GCC -fPIC -shared" - if { [ ishost *-*-darwin* ] } { - set optstr [concat $optstr "-undefined dynamic_lookup"] + # -mdynamic-no-pic is incompatible with -fPIC. + set plug_cflags "" + foreach op $PLUGINCFLAGS { + if { [string compare "-mdynamic-no-pic" $op] } { + set plug_cflags [concat $plug_cflags " $op"] + } + } + set optstr "$includes" + foreach op $extra_flags { + if { [string compare "-mdynamic-no-pic" $op] } { + set optstr [concat $optstr " $op"] + } + } + set optstr [concat $optstr "-DIN_GCC -fPIC -shared -undefined dynamic_lookup"] + } else { + set plug_cflags $PLUGINCFLAGS + set optstr "$includes $extra_flags -DIN_GCC -fPIC -shared" } # Temporarily switch to the environment for the plugin compiler. restore_ld_library_path_env_vars - set status [remote_exec build "$PLUGINCC $PLUGINCFLAGS $plugin_src $optstr -o $plugin_lib"] + set status [remote_exec build "$PLUGINCC $plug_cflags $plugin_src $optstr -o $plugin_lib"] set status [lindex $status 0] set_ld_library_path_env_vars |