summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlli Salli <ollisal@gmail.com>2012-02-07 13:02:14 (GMT)
committerOlli Salli <ollisal@gmail.com>2012-02-07 13:06:09 (GMT)
commit5ed3540f9321fed01df2729a37477f219ab1b9cb (patch)
treeb483b4d83c4767b38515771a5a2bc94593f68d2e
parent0c0dccb8135ca48e4222a408043dc93b3fcf4a98 (diff)
downloadtelepathy-gabble-5ed3540f9321fed01df2729a37477f219ab1b9cb.tar.gz
telepathy-gabble-5ed3540f9321fed01df2729a37477f219ab1b9cb.tar.xz
Compile submodules with -fPIC to fix gabble-plugins.so link on linux/x86_64
Reviewed-by: Simon McVittie (smcv) <simon.mcvittie@collabora.co.uk>
-rw-r--r--configure.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 8eeb1ca..96d2ba3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -314,6 +314,11 @@ AM_CONDITIONAL([WANT_TWISTED_TESTS], test false != "$TEST_PYTHON")
prev_ac_configure_args=$ac_configure_args
ac_configure_args="$ac_configure_args --with-installed-headers=${wocky_install_headers_dir}"
+# Code from the submodules will be linked in to the gabble-plugins.so shared library, so they need
+# to be compiled as position-independent code. Pass on any other flags we got as well.
+sub_cflags="$CFLAGS -fPIC"
+ac_configure_args+=" CFLAGS=\"$sub_cflags\""
+
if test "x$ENABLE_CODING_STYLE_CHECKS" = xyes ; then
ac_configure_args+=" --enable-coding-style-checks"
else