[pygobject] autotools: define PY_SSIZE_T_CLEAN for the test extension
- From: Christoph Reiter <creiter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] autotools: define PY_SSIZE_T_CLEAN for the test extension
- Date: Fri, 23 Mar 2018 06:24:23 +0000 (UTC)
commit 541200f7ca9a4b71ffc966010616cd25c2b69cef
Author: Christoph Reiter <reiter christoph gmail com>
Date: Fri Mar 23 07:23:21 2018 +0100
autotools: define PY_SSIZE_T_CLEAN for the test extension
tests/Makefile.am | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 67f69c56..4a0d3b82 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -23,6 +23,10 @@ extension_ldflags = \
-module \
-shrext $(PYTHON_SO)
+extension_cppflags = \
+ $(PYTHON_INCLUDES) \
+ -DPY_SSIZE_T_CLEAN
+
nodist_libgimarshallingtests_la_SOURCES = \
$(GI_DATADIR)/tests/gimarshallingtests.c \
$(GI_DATADIR)/tests/gimarshallingtests.h
@@ -84,8 +88,8 @@ CLEANFILES += Regress-1.0.gir Regress-1.0.typelib GIMarshallingTests-1.0.gir GIM
extension_ltlibraries += testhelper.la
-testhelper_la_CFLAGS = $(CODE_COVERAGE_CFLAGS) $(WARN_CFLAGS) -I$(top_srcdir)/gi $(PYTHON_INCLUDES)
$(GLIB_CFLAGS)
-testhelper_la_CPPFLAGS = $(CODE_COVERAGE_CPPFLAGS)
+testhelper_la_CFLAGS = $(CODE_COVERAGE_CFLAGS) $(WARN_CFLAGS) -I$(top_srcdir)/gi $(extension_cppflags)
$(GLIB_CFLAGS)
+testhelper_la_CPPFLAGS = $(CODE_COVERAGE_CPPFLAGS) $(extension_cppflags)
testhelper_la_LDFLAGS = $(WARN_LDFLAGS) $(extension_ldflags)
testhelper_la_LIBADD = $(CODE_COVERAGE_LIBS) $(GLIB_LIBS) $(extension_libadd)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]