From fd6832b4bc6b46d4c7b9111994d5373391b66744 Mon Sep 17 00:00:00 2001 From: Michael Heimpold Date: Wed, 22 Nov 2023 00:39:17 +0100 Subject: gensio: add patches/fixes to workaround swig and python detection The built-in swig/python detection does not works well when system-wide m4 macros are available with same name but different content. So make the configure stuff compatible, resp. workaround a little bit. It seems also necessary to pass the PYTHON_LIBS environment during the compile phase. Signed-off-by: Michael Heimpold --- net/gensio/Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'net/gensio/Makefile') diff --git a/net/gensio/Makefile b/net/gensio/Makefile index b53d6821d..98b429d0d 100644 --- a/net/gensio/Makefile +++ b/net/gensio/Makefile @@ -77,6 +77,9 @@ CONFIGURE_VARS += \ PYTHON_LIBS="$(shell $(STAGING_DIR)/host/bin/$(PYTHON3)-config --ldflags) -l${PYTHON3}" \ PYTHON_CPPFLAGS="$(shell $(STAGING_DIR)/host/bin/$(PYTHON3)-config --includes)" \ PYTHON="$(STAGING_DIR_HOSTPKG)/bin/$(PYTHON3)" + +MAKE_VARS += \ + PYTHON_LIBS="$(shell $(STAGING_DIR)/host/bin/$(PYTHON3)-config --ldflags) -l${PYTHON3}" else CONFIGURE_ARGS += \ --without-python \ -- cgit v1.2.3