Skip to content

Commit

Permalink
Fix: Add missing LIBS to python bindings
Browse files Browse the repository at this point in the history
Also move includes to CPPFLAGS.

Signed-off-by: Michael Jeanson <[email protected]>
Signed-off-by: Jérémie Galarneau <[email protected]>
  • Loading branch information
mjeanson authored and jgalar committed Jun 1, 2017
1 parent ec294ef commit 98d8d2b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,6 @@ bindings/python/babeltrace/__init__.py
bindings/python/babeltrace/babeltrace.i
bindings/python/babeltrace/babeltrace.py
bindings/python/babeltrace/babeltrace_wrap.c
bindings/python/build-python-bindings.stamp
babeltrace.pc
babeltrace-ctf.pc
7 changes: 4 additions & 3 deletions bindings/python/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ BINDINGS_DEPS=setup.py \
babeltrace/python-complements.h

BUILD_FLAGS=CC="$(CC)" \
CFLAGS="$(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(GLIB_CFLAGS) $(AM_CFLAGS)" \
CPPFLAGS="$(AM_CPPFLAGS) $(CPPFLAGS)" \
LDFLAGS="$(AM_LDFLAGS) $(LDFLAGS)"
CFLAGS="$(GLIB_CFLAGS) $(AM_CFLAGS) $(CFLAGS)" \
CPPFLAGS="$(DEFS) $(DEFAULT_INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS)" \
LDFLAGS="$(AM_LDFLAGS) $(LDFLAGS)" \
LIBS="$(GLIB_LIBS) $(LIBS)"

build-python-bindings.stamp: $(BINDINGS_DEPS)
$(BUILD_FLAGS) $(PYTHON) $(builddir)/setup.py build_ext
Expand Down

0 comments on commit 98d8d2b

Please sign in to comment.