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]

Re: default plugin directory?


On Thu, 18 Jun 2009, Basile STARYNKEVITCH wrote:

> The attached patch is an [untested, but compiled] proof of concept of my idea,
> just to start discussion.
> gcc/ChangeLog:
> 2009-06-18  Basile Starynkevitch  <basile@starynkevitch.net>
>    * plugin.c (try_init_one_plugin): use the PLUGIN_DEFAULT_DIRECTORY for
> -fplugin=foo.
>    * Makefile.in (plugins_default_dir): Added new variable.
>    (plugin.o): explicitly defines PLUGIN_DEFAULT_DIRECTORY.
> 
> 
> Comments are welcome.

This patch does not appear to use make_relative_prefix to adjust the path 
if the compiler is run from some location other than the configured 
prefix, so would break relocatability.

-- 
Joseph S. Myers
joseph@codesourcery.com


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