+2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR testsuite/40050
+ * lib/plugin-support.exp (plugin-test-execute): Use HOSTCC to
+ build plugin.
+
2009-05-06 Janus Weil <janus@gcc.gnu.org>
PR fortran/39630
global srcdir objdir
global verbose
global GMPINC
+ global HOSTCC
+ global HOSTCFLAGS
set basename [file tail $plugin_src]
set base [file rootname $basename]
set optstr "$includes $extra_flags -DIN_GCC -fPIC -shared"
- set status [target_compile "$optstr $plugin_src" "$plugin_lib" executable ""]
- if { "$status" != "" } {
+ # Temporarily switch to the environment for the host compiler.
+ restore_ld_library_path_env_vars
+ set status [remote_exec build "$HOSTCC $HOSTCFLAGS $plugin_src $optstr -o $plugin_lib"]
+ set status [lindex $status 0]
+ set_ld_library_path_env_vars
+
+ if { $status != 0 } then {
unresolved "$basename compilation, $optstr"
return
}