[lttng-dev] [PATCH babeltrace stable-1.5] Fix: use LDFLAGS instead of LIBS for python bindings

Jérémie Galarneau jeremie.galarneau at efficios.com
Tue Jun 13 15:41:54 UTC 2017


Merged in stable-1.5. Thanks!

Jérémie

On 2 June 2017 at 11:56, Michael Jeanson <mjeanson at efficios.com> wrote:
> Turns out that contrary to what is documented some versions of distutils
> don't honor the LIBS variable, use LDFLAGS instead.
>
> Signed-off-by: Michael Jeanson <mjeanson at efficios.com>
> ---
>  bindings/python/Makefile.am | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/bindings/python/Makefile.am b/bindings/python/Makefile.am
> index f6806a8..2ceab03 100644
> --- a/bindings/python/Makefile.am
> +++ b/bindings/python/Makefile.am
> @@ -25,8 +25,7 @@ BINDINGS_DEPS=setup.py \
>  BUILD_FLAGS=CC="$(CC)" \
>                 CFLAGS="$(GLIB_CFLAGS) $(AM_CFLAGS) $(CFLAGS)" \
>                 CPPFLAGS="$(DEFS) $(DEFAULT_INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS)" \
> -               LDFLAGS="$(AM_LDFLAGS) $(LDFLAGS)" \
> -               LIBS="$(GLIB_LIBS) $(LIBS)"
> +               LDFLAGS="$(AM_LDFLAGS) $(LDFLAGS) $(GLIB_LIBS) $(LIBS)"
>
>  build-python-bindings.stamp: $(BINDINGS_DEPS)
>         $(BUILD_FLAGS) $(PYTHON) $(builddir)/setup.py build_ext
> --
> 2.7.4
>



-- 
Jérémie Galarneau
EfficiOS Inc.
http://www.efficios.com


More information about the lttng-dev mailing list