[PATCH] Add --enable-host-shared configuration option
David Malcolm
dmalcolm@redhat.com
Tue Oct 15 20:55:00 GMT 2013
On Tue, 2013-10-15 at 10:29 -0600, Jeff Law wrote:
> On 10/09/13 18:25, David Malcolm wrote:
[...]
> Presumably other host libraries we depend on such as gmp, mpc, etc are
> available in shared (or at least PIC) form as well? Obviously these are
> out of our source tree and largely out of our control, but I'm a bit
> curious if there's other host libraries that may cause you headaches in
> the future.
Yes, on this Fedora box:
$ file /usr/lib64/libgmp.so.10.0.2
/usr/lib64/libgmp.so.10.0.2: ELF 64-bit LSB shared object, x86-64,
version 1 (SYSV), dynamically linked,
BuildID[sha1]=0x6fb87c7b6e9aa56e4a09a3fbd496a9ee2dadbdc2, stripped
$ file /usr/lib64/libmpc.so.2.0.0
/usr/lib64/libmpc.so.2.0.0: ELF 64-bit LSB shared object, x86-64,
version 1 (SYSV), dynamically linked,
BuildID[sha1]=0x7fb16b27ba6412301c4efab4b9c0c3a09bb3c95d, stripped
> This is fine with the install.texi changes Joseph wanted.
Thanks; I've committed the combined patch to trunk as r203632.
> zlib/
> * configure.ac: Add --enable-host-shared, setting up new
> > PICFLAG variable.
> > * Makefile.am: Add PICFLAG to libz_a_CFLAGS.
> > * Makefile.in: Regenerate.
> > * configure: Regenerate.
>
Incidentally, on committing this I noticed that zlib/ChangeLog is from
upstream zlib. The downstream changes to gcc appear to be being
recorded into zlib/ChangeLog.gcj (I assume due to historical accident)
so I added the zlib changelog entries here. I hope that's OK.
Dave
More information about the Gcc-patches
mailing list