From bae8be93339daee70d3b0f0827ae450e58e3be41 Mon Sep 17 00:00:00 2001 From: Alexandre Duret-Lutz Date: Sat, 1 Jun 2019 20:30:32 +0200 Subject: [PATCH] work around swig4 regression * python/Makefile.am: Here. --- python/Makefile.am | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/Makefile.am b/python/Makefile.am index c66706668..00a176531 100644 --- a/python/Makefile.am +++ b/python/Makefile.am @@ -78,6 +78,8 @@ am__depfiles_remade += ./spot/$(DEPDIR)/impl_wrap.Pcxx ${srcdir}/spot/impl_wrap.cxx: spot/impl.i $(SWIG) $(SWIGFLAGS) -I$(srcdir) -I$(top_srcdir) -MF spot/$(DEPDIR)/impl_wrap.TPcxx $(srcdir)/spot/impl.i +## work around https://github.com/swig/swig/issues/1553 + $(PERL) -pi -e 's/^#define SWIG_Python_CallFunctor.*/#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);/' $@ mv spot/$(DEPDIR)/impl_wrap.TPcxx spot/$(DEPDIR)/impl_wrap.Pcxx spot/impl.py: spot/impl.i