diff options
-rw-r--r-- | Makefile-giscanner.am | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile-giscanner.am b/Makefile-giscanner.am index 616e3b16..841089f2 100644 --- a/Makefile-giscanner.am +++ b/Makefile-giscanner.am @@ -66,7 +66,8 @@ _giscanner_la_LDFLAGS = \ if OS_WIN32 # Yuck. Probably there is a way to get this from Python, but I don't # know how. Use -Wl to avoid libtool crack. -_giscanner_la_LDFLAGS += -Wl,$(pyexecdir)/../../libs/libpython25.a -no-undefined +PYVER= `echo $(PYTHON_VERSION) | sed 's/\.//g'` +_giscanner_la_LDFLAGS += -Wl,$(pyexecdir)/../../libs/libpython$(PYVER).a -no-undefined endif _giscanner_la_SOURCES = giscanner/giscannermodule.c |