From 7d18f8b444b3a7976b6f18bf74fa582fab69d2fe Mon Sep 17 00:00:00 2001 From: lloyd Date: Tue, 7 Jan 2014 12:37:54 +0000 Subject: 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. --- src/build-data/makefile/python.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/build-data/makefile/python.in') 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 -- cgit v1.2.3