re PR target/43715 (configure option --enable-plugin fails on darwin)
authorJack Howarth <howarth@bromo.med.uc.edu>
Mon, 26 Apr 2010 20:33:49 +0000 (20:33 +0000)
committerMike Stump <mrs@gcc.gnu.org>
Mon, 26 Apr 2010 20:33:49 +0000 (20:33 +0000)
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

gcc/testsuite/ChangeLog
gcc/testsuite/lib/plugin-support.exp

index 783fafb3b4a72879c401addf5b16aff5d31979b5..80bfee2482f697413438c1b92601d7ef6f44ada4 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 3a7b78ab956f4fa56f71891a86a3fb89af1c6ede..fe4526549b3acd937f1a94d219e7d57c31c6649c 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"]