windows: Use the real python version instead of an hardcoded one
authorAndoni Morales Alastruey <ylatuya@gmail.com>
Sat, 3 Sep 2011 10:44:41 +0000 (12:44 +0200)
committerColin Walters <walters@verbum.org>
Sat, 3 Sep 2011 18:38:07 +0000 (14:38 -0400)
Makefile-giscanner.am

index 616e3b16b4a9e181afa3b1167a279e3a3f94e3e6..841089f2f90ab0d50c32743146d3eb2a67ddbdb6 100644 (file)
@@ -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