Commit 864c9a0a authored by Christoph Reiter's avatar Christoph Reiter 🐍

Merge branch 'autotools-py-ext-suffix' into 'master' Don't hardcode the Python C-ext file extension

See merge request !41
parents 2c13f051 2d34d90f
Pipeline #16930 passed with stage
in 4 minutes and 48 seconds
......@@ -117,15 +117,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 += \
_giscanner_la_LDFLAGS += \
-no-undefined \
-shrext ".pyd"
-shrext $(PYTHON_SO)
_giscanner_la_SOURCES = giscanner/giscannermodule.c
......@@ -278,6 +278,9 @@ if test "x$os_win32" = "xyes"; then
AM_CHECK_PYTHON_LIBS(, AC_MSG_ERROR([Python libs not found. Windows requires Python modules to be explicitly linked to libpython.]))
PYTHON_SO=`$PYTHON -c "import sysconfig, sys; get = sysconfig.get_config_var; sys.stdout.write(get('EXT_SUFFIX') or get('SO') or '.so');"`
dnl Not enabled by default until 3.6 cycle when we can propose mako as
dnl an external dependency
AC_ARG_ENABLE(doctool,[ --disable-doctool disable g-ir-doc-tool ],,enable_doctool=auto)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment