aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-12-13 17:08:45 +0000
committerlloyd <[email protected]>2010-12-13 17:08:45 +0000
commit02aaf20a0c53a5bb92c073d1c940be7ad516ece1 (patch)
tree7f6d149ae14c29a85aa40beba5fc400ae6f52151 /src
parent9285e06b23001e2ea3a628178151047ceec8d83e (diff)
Don't hardcode dir where python code lives
Diffstat (limited to 'src')
-rw-r--r--src/build-data/makefile/python.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/build-data/makefile/python.in b/src/build-data/makefile/python.in
index 420da0e92..583c91eb5 100644
--- a/src/build-data/makefile/python.in
+++ b/src/build-data/makefile/python.in
@@ -7,7 +7,7 @@ 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/
-PYTHON_FLAGS = -Isrc/wrap/python -fPIC -ftemplate-depth-255 $(WARN_FLAGS) $(PYTHON_INC) $(CFLAGS)
+PYTHON_FLAGS = -I%{python_dir} -fPIC -ftemplate-depth-255 $(WARN_FLAGS) $(PYTHON_INC) $(CFLAGS)
BOTAN_PYTHON_MODDIR = %{python_obj_dir}
@@ -18,7 +18,7 @@ all: $(BOTAN_PYTHON_MODDIR)/_botan.so
%{python_build_cmds}
$(BOTAN_PYTHON_MODDIR)/_botan.so: $(PYTHON_OBJS)
- cp src/wrap/python/*.py $(BOTAN_PYTHON_MODDIR)
+ cp %{python_dir}/*.py $(BOTAN_PYTHON_MODDIR)
$(CXX) -shared -Wl,-soname,$@ $(PYTHON_OBJS) -L. -L$(PYTHON_ROOT) $(LDFLAGS) -lbotan -lboost_python -o $@
clean: