This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] Add plugin interface to LD [1/4] Infrastructure.
- From: Ralf Wildenhues <Ralf dot Wildenhues at gmx dot de>
- To: Dave Korn <dave dot korn dot cygwin at gmail dot com>
- Cc: "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Thu, 23 Sep 2010 07:41:13 +0200
- Subject: Re: [PATCH] Add plugin interface to LD [1/4] Infrastructure.
- References: <4C9AE5CA.80707@gmail.com> <4C9AE625.8030904@gmail.com>
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