aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data/makefile/python.in
diff options
context:
space:
mode:
authorlloyd <[email protected]>2014-01-07 12:37:54 +0000
committerlloyd <[email protected]>2014-01-07 12:37:54 +0000
commit7d18f8b444b3a7976b6f18bf74fa582fab69d2fe (patch)
tree9baf348d5ca3e17ab270fc727a64d82a5c223ac0 /src/build-data/makefile/python.in
parent14ea6e48d1ed916b2e36a16eb44862a89fb1fd3c (diff)
Make the shared library an included fragment like python
Renamed make target to gmake because I'm pretty sure += and ifdef on variables is gmake specific.
Diffstat (limited to 'src/build-data/makefile/python.in')
-rw-r--r--src/build-data/makefile/python.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/build-data/makefile/python.in b/src/build-data/makefile/python.in
index 5b1d2379d..f6e49ee75 100644
--- a/src/build-data/makefile/python.in
+++ b/src/build-data/makefile/python.in
@@ -1,4 +1,5 @@
+# Build commands for Python wrapper
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/
@@ -17,7 +18,7 @@ PYTHON_FLAGS = $(LANG_FLAGS) $(WARN_FLAGS) $(SO_OBJ_FLAGS) -Os -ftemplate-dept
$(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-$(SERIES) -lboost_python-%{python_version} -o $@
+ $(CXX) -shared -Wl,-soname,$@ $(PYTHON_OBJS) -L. -L$(PYTHON_ROOT) $(LDFLAGS) -lbotan-$(BRANCH) -lboost_python-%{python_version} -o $@
install_python:
mkdir -p $(PYTHON_SITE_PACKAGE_DIR)/botan