This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] [plugins] Fix an issue in plugin test support when running the tests on 64bit linux


This small patch (for the plugins branch) fixes an issue in the
dejagnu support for plugin testing where we didn't use '-fPIC' flag
when building plugin share libraries. This issue was exposed when
running the testsuite on x86_64-linux-gnu.

The patch was bootstrapped and tested on x86_64-linux-gnu.

Le-chun

2009-04-01  Le-Chun Wu  <lcwu@google.com>

        * gcc/testsuite/lib/plugin-support.exp (plugin-test-execute): Add
        '-fPIC' flag in plugin build command-line.



Index: gcc/testsuite/lib/plugin-support.exp
===================================================================
--- gcc/testsuite/lib/plugin-support.exp	(revision 145075)
+++ gcc/testsuite/lib/plugin-support.exp	(working copy)
@@ -87,7 +87,7 @@ proc plugin-test-execute { plugin_src pl
                   -I${gcc_srcdir}/include -I${gcc_srcdir}/libcpp/include \
                   -I${gcc_objdir}/gmp"

-    set optstr "$includes $extra_flags -DIN_GCC -shared"
+    set optstr "$includes $extra_flags -DIN_GCC -shared -fPIC"
     set compline "$optstr $plugin_src -o $plugin_lib"

     set status [remote_exec build "$HOSTCC $HOSTCFLAGS $compline"]


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]