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: Add GPL compatibility check for plugins


On Thu, Jun 18, 2009 at 03:46:57PM -0400, Diego Novillo wrote:
> When a plugin is loaded, the compiler checks whether the symbol
> plugin_is_GPL_compatible exists in the loaded shared object.
> 
> The presence of this symbol asserts that the loaded plugin has
> been licenced under a GPL-compatible license.  If the symbol does
> not exist, the compiler exits with the message:
> 
> fatal error: plugin <name> is not licensed under a GPL-compatible license

Can you add a test that checks that if the symbol is not present, the
compilation fails?

-Nathan


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