]> git.ipfire.org Git - thirdparty/gcc.git/commit
intl: Add --enable-host-shared support [PR100096]
authorJakub Jelinek <jakub@redhat.com>
Fri, 16 Apr 2021 16:32:27 +0000 (18:32 +0200)
committerJakub Jelinek <jakub@redhat.com>
Tue, 20 Apr 2021 09:44:18 +0000 (11:44 +0200)
commita11f31102706e33f66b60367d6863613ab3bd051
tree178e80f5b3e604724594576afff22080802a901d
parent31447dcaf15c37e5b9c42b2984f4c8b649fe9b74
intl: Add --enable-host-shared support [PR100096]

As mentioned in the PR, building gcc with jit enabled and
--enable-host-shared doesn't work on NetBSD/i?86, as libgccjit.so.0
has text relocations.
The r0-125846-g459260ecf8b420b029601a664cdb21c185268ecb changes
added --enable-host-shared support to various libraries, but didn't
add it to intl/ subdirectory; on Linux it isn't really needed, because
all: all-no
all-no: #nothing
but on other OSes intl/libintl.a is built.

The following patch makes sure it is built with -fPIC when
--enable-host-shared is used.

2021-04-16  Jakub Jelinek  <jakub@redhat.com>

PR jit/100096
* configure.ac: Add --enable-host-shared support.
* Makefile.in: Update copyright.  Add @PICFLAG@ to CFLAGS.
* configure: Regenerated.

(cherry picked from commit 4a1493f0603262a7dc1114d9827353e9810e63dc)
intl/Makefile.in
intl/configure
intl/configure.ac