aboutsummaryrefslogtreecommitdiffstats
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
parent15d10fac378c42e6a78ec7a56fc5a996d8c201b8 (diff)
Add LDFLAGS to Python link line
-rw-r--r--doc/log.txt1
-rw-r--r--src/build-data/makefile/python.in3
2 files changed, 3 insertions, 1 deletions
diff --git a/doc/log.txt b/doc/log.txt
index bab388fef..509c8a6b8 100644
--- a/doc/log.txt
+++ b/doc/log.txt
@@ -1,5 +1,6 @@
* 1.9.12-dev, ????-??-??
+ - Fix compilation problems in Python wrappers
* 1.9.11, 2010-11-29
- Many SSL/TLS APIs have changed. This API is still unstable.
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)/*