From fa4a01bd5f4ad59fe0a646e3111a8d38ac9f047b Mon Sep 17 00:00:00 2001 From: Andoni Morales Alastruey Date: Sat, 3 Sep 2011 12:44:41 +0200 Subject: windows: Use the real python version instead of an hardcoded one --- Makefile-giscanner.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1