diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2018-06-21 10:12:50 +0200 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2018-06-21 10:12:50 +0200 |
commit | 2d34d90fda8a96a9e37ae5f3fdd6900c6a388bfa (patch) | |
tree | a5939d345d77d3bf31de06077db30f5e3238a225 /Makefile-giscanner.am | |
parent | 8bcc831c5f80bdac44b360db5fbb16db118a6951 (diff) | |
download | gobject-introspection-2d34d90fda8a96a9e37ae5f3fdd6900c6a388bfa.tar.gz |
configure.ac: Don't hardcode the Python C-ext file extension
.pyd doesn't work with Python 3 on Windows, ask Python for what file extension
it expects instead of hardcoding it.
Diffstat (limited to 'Makefile-giscanner.am')
-rw-r--r-- | Makefile-giscanner.am | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Makefile-giscanner.am b/Makefile-giscanner.am index c144fe54..289585b5 100644 --- a/Makefile-giscanner.am +++ b/Makefile-giscanner.am @@ -114,15 +114,13 @@ _giscanner_la_LDFLAGS = \ if OS_WIN32 # Windows requires Python extension modules to be explicitly -# linked to libpython. Extension modules are shared libaries -# (.dll files), but need to be called .pyd for Python to load -# them as extension modules. +# linked to libpython. _giscanner_la_LIBADD += \ $(PYTHON_LIBS) _giscanner_la_LDFLAGS += \ -no-undefined \ - -shrext ".pyd" + -shrext $(PYTHON_SO) endif _giscanner_la_SOURCES = giscanner/giscannermodule.c |