This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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: [PATCH] Add plugin interface to LD [1/4] Infrastructure.


Hi Dave,

* Dave Korn wrote on Thu, Sep 23, 2010 at 07:31:17AM CEST:
> --- a/ld/Makefile.am
> +++ b/ld/Makefile.am
> @@ -21,6 +21,21 @@ WARN_CFLAGS = @WARN_CFLAGS@
>  NO_WERROR = @NO_WERROR@
>  AM_CFLAGS = $(WARN_CFLAGS)
>  
> +# Conditionally enable the plugin interface.
> +if ENABLE_PLUGINS
> +PLUGIN_C = plugin.c
> +PLUGIN_H = plugin.h
> +PLUGIN_OBJEXT = plugin.@OBJEXT@

Maybe rather PLUGIN_OBJECT, because it's not only an extension?

> +PLUGIN_CFLAGS = -DENABLE_PLUGINS
> +else
> +PLUGIN_C =
> +PLUGIN_H =
> +PLUGIN_OBJEXT =
> +PLUGIN_CFLAGS =
> +endif
> +
> +AM_CFLAGS += $(PLUGIN_CFLAGS)

AM_CPPFLAGS for -D flags, I'd say.

Cheers,
Ralf


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