From c9e50e9897c763bb8a23bea37fd04d5e94834a57 Mon Sep 17 00:00:00 2001 From: mrs Date: Mon, 26 Apr 2010 20:33:49 +0000 Subject: [PATCH] 2010-04-21 Jack Howarth PR 43715 * testsuite/lib/plugin-support.exp: Use "-undefined dynamic_lookup" on darwin. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158747 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/lib/plugin-support.exp | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 783fafb3b4a7..80bfee2482f6 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2010-04-21 Jack Howarth + + PR 43715 + * testsuite/lib/plugin-support.exp: Use "-undefined + dynamic_lookup" on darwin. + 2010-04-26 Richard Guenther * 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 3a7b78ab956f..fe4526549b3a 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"] -- 2.47.2