diff options
author | Jack Howarth <howarth@bromo.med.uc.edu> | 2010-04-26 20:33:49 +0000 |
---|---|---|
committer | Mike Stump <mrs@gcc.gnu.org> | 2010-04-26 20:33:49 +0000 |
commit | 920a8260a475c90750d1cd3da8024c8d8c870ca3 (patch) | |
tree | f28500cfb03ff33121b5887fa885436f1072c039 /gcc | |
parent | b83a701b0f79c99a487202016d158c40eb0c4629 (diff) | |
download | gcc-920a8260a475c90750d1cd3da8024c8d8c870ca3.zip gcc-920a8260a475c90750d1cd3da8024c8d8c870ca3.tar.gz gcc-920a8260a475c90750d1cd3da8024c8d8c870ca3.tar.bz2 |
re PR target/43715 (configure option --enable-plugin fails on darwin)
2010-04-21 Jack Howarth <howarth@bromo.med.uc.edu>
PR 43715
* testsuite/lib/plugin-support.exp: Use "-undefined
dynamic_lookup" on darwin.
From-SVN: r158747
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/lib/plugin-support.exp | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 783fafb..80bfee2 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2010-04-21 Jack Howarth <howarth@bromo.med.uc.edu> + + PR 43715 + * testsuite/lib/plugin-support.exp: Use "-undefined + dynamic_lookup" on darwin. + 2010-04-26 Richard Guenther <rguenther@suse.de> * gcc.dg/lto/20100426_0.c: New testcase. diff --git a/gcc/testsuite/lib/plugin-support.exp b/gcc/testsuite/lib/plugin-support.exp index 3a7b78a..fe45265 100644 --- a/gcc/testsuite/lib/plugin-support.exp +++ b/gcc/testsuite/lib/plugin-support.exp @@ -88,6 +88,10 @@ proc plugin-test-execute { plugin_src plugin_tests } { set optstr "$includes $extra_flags -DIN_GCC -fPIC -shared" + if { [ ishost *-*-darwin* ] } { + set optstr [concat $optstr "-undefined dynamic_lookup"] + } + # 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"] |