From 2e156799118320c358d1bb77b2d51166deb3ec76 Mon Sep 17 00:00:00 2001 From: Sergey Kosukhin <sergey.kosukhin@mpimet.mpg.de> Date: Thu, 7 Apr 2022 17:28:24 +0200 Subject: [PATCH] Fix building object interface for Python. --- interfaces/Makefile.am | 2 +- interfaces/python/setupObj.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/interfaces/Makefile.am b/interfaces/Makefile.am index 7099bb551..df378b8ba 100644 --- a/interfaces/Makefile.am +++ b/interfaces/Makefile.am @@ -194,7 +194,7 @@ setup_cdilib_py_vars = \ setup_python_cxx_vars = CFLAGS="$(CXXFLAGS) $(DEFS)" \ CC="$${LIBTOOL} --mode=compile --tag=CXX $(CXX) -shared" \ LDSHARED="$${LIBTOOL} --mode=link --tag=CXX $(CXX) -module -shared" \ - CXX="$${LIBTOOL} --mode=link --tag=CXX $(CXX) -module -shared" + CXX="$${LIBTOOL} --mode=compile --tag=CXX $(CXX) -shared" setup_cdiobj_py_vars = \ setupObj_py=`test -f setupObj.py || echo '$(abs_srcdir)/python/'`setupObj.py ; \ diff --git a/interfaces/python/setupObj.py b/interfaces/python/setupObj.py index 2705efb87..14210961d 100644 --- a/interfaces/python/setupObj.py +++ b/interfaces/python/setupObj.py @@ -20,7 +20,7 @@ cdiobj_module = Extension('_CdiObj', runtime_library_dirs = [os.environ['BUILDLIBDIR'],os.environ['LIBDIR']], extra_link_args = LIBS, libraries = ['cdi','stdc++'], - language = 'c++', + language = 'c', ) print_libdir = False -- GitLab