aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data/makefile
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-01-25 02:01:17 +0000
committerlloyd <[email protected]>2012-01-25 02:01:17 +0000
commit1b12d3afbd32e8e0bd39900dfb9359e2b9a9af99 (patch)
tree0c97e21afb55a345f444cc71976321b81cef1b5b /src/build-data/makefile
parent3d6c45f0f9e66183bd7bcd4751e67e682e956cb0 (diff)
Fix lib suffix
Diffstat (limited to 'src/build-data/makefile')
-rw-r--r--src/build-data/makefile/python.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/build-data/makefile/python.in b/src/build-data/makefile/python.in
index 583c91eb5..74620fe06 100644
--- a/src/build-data/makefile/python.in
+++ b/src/build-data/makefile/python.in
@@ -3,6 +3,8 @@ CFLAGS = -Os
LDFLAGS =
WARN_FLAGS = %{warn_flags}
+SERIES = %{version_major}.%{version_minor}
+
PYTHON_ROOT = /usr/lib/python%{python_version}/config
PYTHON_INC = -I/usr/include/python%{python_version}
PYTHON_SITE_PACKAGE_DIR = /usr/lib/python%{python_version}/site-packages/
@@ -19,7 +21,7 @@ all: $(BOTAN_PYTHON_MODDIR)/_botan.so
$(BOTAN_PYTHON_MODDIR)/_botan.so: $(PYTHON_OBJS)
cp %{python_dir}/*.py $(BOTAN_PYTHON_MODDIR)
- $(CXX) -shared -Wl,-soname,$@ $(PYTHON_OBJS) -L. -L$(PYTHON_ROOT) $(LDFLAGS) -lbotan -lboost_python -o $@
+ $(CXX) -shared -Wl,-soname,$@ $(PYTHON_OBJS) -L. -L$(PYTHON_ROOT) $(LDFLAGS) -lbotan-$(SERIES) -lboost_python -o $@
clean:
rm -rf $(BOTAN_PYTHON_MODDIR)/*