OSDN Git Service

2010-04-21 Jack Howarth <howarth@bromo.med.uc.edu>
authormrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Apr 2010 20:33:49 +0000 (20:33 +0000)
committermrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Apr 2010 20:33:49 +0000 (20:33 +0000)
        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
gcc/testsuite/lib/plugin-support.exp

index 783fafb..80bfee2 100644 (file)
@@ -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.
index 3a7b78a..fe45265 100644 (file)
@@ -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"]