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.
This commit is contained in:
Nick Alcock
2021-02-02 15:39:26 +00:00
parent adda0248ed
commit 53d4244ec0
5 changed files with 102 additions and 1 deletions

View File

@@ -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