summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndoni Morales Alastruey <ylatuya@gmail.com>2011-09-03 12:44:41 +0200
committerColin Walters <walters@verbum.org>2011-09-03 14:38:07 -0400
commitfa4a01bd5f4ad59fe0a646e3111a8d38ac9f047b (patch)
tree2a0ed3fb82edb36580cff2f4a49ad9a11fbe6be7
parentca0699b3d5be19c482ac2ead600e0789b0ba3a76 (diff)
downloadgobject-introspection-fa4a01bd5f4ad59fe0a646e3111a8d38ac9f047b.tar.gz
windows: Use the real python version instead of an hardcoded one
-rw-r--r--Makefile-giscanner.am3
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