aboutsummaryrefslogtreecommitdiff
path: root/intl/configure.ac
diff options
context:
space:
mode:
authorNick Alcock <nick.alcock@oracle.com>2021-02-02 15:39:26 +0000
committerNick Alcock <nick.alcock@oracle.com>2021-02-10 15:26:57 +0000
commit53d4244ec0ac70438d75abf3326cb3392bb9c828 (patch)
tree4d9cbb3622894ee2f0419c74af424f0131363122 /intl/configure.ac
parentadda0248ed0f7a2245f53a79ef6dbc2093a1be22 (diff)
downloadgdb-53d4244ec0ac70438d75abf3326cb3392bb9c828.zip
gdb-53d4244ec0ac70438d75abf3326cb3392bb9c828.tar.gz
gdb-53d4244ec0ac70438d75abf3326cb3392bb9c828.tar.bz2
intl: always picify
libintl is included in several shared libraries (at least libinproctrace.so and libctf.so): unconditionally picify with code borrowed from libiberty configure. (It's not performance-critical, so don't bother making separate PIC and non-PIC libraries like libiberty does.) intl/ChangeLog 2021-02-02 Nick Alcock <nick.alcock@oracle.com> * aclocal.m4: include picflag.m4. * configure.ac (PICFLAG): Add and substitute. * Makefile.in (PICFLAG): New. (COMPILE): Use it. * configure: Regenerate.
Diffstat (limited to 'intl/configure.ac')
-rw-r--r--intl/configure.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/intl/configure.ac b/intl/configure.ac
index 6363e55..5ec7b09 100644
--- a/intl/configure.ac
+++ b/intl/configure.ac
@@ -47,6 +47,11 @@ case $USE_INCLUDED_LIBINTL in
;;
esac
+# intl is sometimes linked into shared libraries even without --enable-shared
+# (e.g. gdbsupport's inprocess agent): so always PICify, just in case.
+GCC_PICFLAG
+AC_SUBST(PICFLAG)
+
BISON3_YES='#'
BISON3_NO=
if test "$INTLBISON" != :; then