summaryrefslogtreecommitdiff
path: root/libssp/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'libssp/configure.ac')
-rw-r--r--libssp/configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/libssp/configure.ac b/libssp/configure.ac
index 05c84f6f70a..0bec15c140f 100644
--- a/libssp/configure.ac
+++ b/libssp/configure.ac
@@ -75,7 +75,7 @@ FOO_1.0 {
};
EOF
save_LDFLAGS="$LDFLAGS"
-LDFLAGS="$LDFLAGS -shared -Wl,--version-script,./conftest.map"
+LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
AC_TRY_LINK([int foo;],[],[ssp_use_symver=yes],[ssp_use_symver=no])
LDFLAGS="$save_LDFLAGS"
AC_MSG_RESULT($ssp_use_symver)