summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2008-06-17 14:59:49 +0000
committerjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2008-06-17 14:59:49 +0000
commitf53ad40ff58534291c8a684086a31b34f4255f6a (patch)
treebbcaef978495fa0b90fd0e16bba7cbfa80833b7f /configure.in
parente5e54ab6b348db30baa69fac25a6ea765e6de77f (diff)
downloadneon-f53ad40ff58534291c8a684086a31b34f4255f6a.tar.gz
* configure.in: Build PIC objects in default configuration, unless
non-PIC explicitly requested. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1451 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 60a00cf..3664d55 100644
--- a/configure.in
+++ b/configure.in
@@ -151,6 +151,10 @@ fi
# to not export these from the built library if possible.
NEON_LINK_FLAGS="$NEON_LINK_FLAGS -export-symbols-regex '^ne_[[^_]]'"
+if test x${enable_shared}${pic_mode}z = xnodefaultz; then
+ CFLAGS="$CFLAGS -prefer-pic"
+fi
+
# Bundled language catalogs
ALL_LINGUAS="cs de fr ja nn pl ru tr zh_CN"
AC_SUBST(ALL_LINGUAS)