aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data/makefile
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-12-01 15:01:34 +0000
committerlloyd <[email protected]>2010-12-01 15:01:34 +0000
commit322c04b3cc622c5eee197a54afb388c96b44aa39 (patch)
treed8ae543be081cd1d8d8b8d4d9409a4b556849d17 /src/build-data/makefile
parent15d10fac378c42e6a78ec7a56fc5a996d8c201b8 (diff)
Add LDFLAGS to Python link line
Diffstat (limited to 'src/build-data/makefile')
-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 87c342fcf..516b6ac1c 100644
--- a/src/build-data/makefile/python.in
+++ b/src/build-data/makefile/python.in
@@ -1,4 +1,5 @@
CXX = %{cc}
+LDFLAGS =
WARN_FLAGS = %{warn_flags}
PYTHON_ROOT = /usr/lib/python%{python_version}/config
@@ -17,7 +18,7 @@ all: $(BOTAN_PYTHON_MODDIR)/_botan.so
$(BOTAN_PYTHON_MODDIR)/_botan.so: $(PYTHON_OBJS)
cp src/wrap/python/*.py $(BOTAN_PYTHON_MODDIR)
- $(CXX) -shared -Wl,-soname,$@ $(PYTHON_OBJS) -L. -L$(PYTHON_ROOT) -lbotan -lboost_python -o $@
+ $(CXX) -shared -Wl,-soname,$@ $(PYTHON_OBJS) -L. -L$(PYTHON_ROOT) $(LDFLAGS) -lbotan -lboost_python -o $@
clean:
rm -rf $(BOTAN_PYTHON_MODDIR)/*