]> git.ipfire.org Git - thirdparty/gcc.git/commit
jit, Darwin: Implement library exports list.
authorIain Sandoe <iain@sandoe.co.uk>
Sat, 13 Jan 2024 17:20:47 +0000 (17:20 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Fri, 5 Apr 2024 19:57:56 +0000 (20:57 +0100)
commit045de0ab586409ce2e447ed4dd5c6786fe46254f
tree890caf2339a19fe4e6e6d6d8c3e9e49767bcfb23
parentfe805c444cc9c6a5f21cf55ff51775d4c0b5fa00
jit, Darwin: Implement library exports list.

Currently, we have no exports list for libgccjit, which means that
all symbols are exported, including those from libstdc++ which is
linked statically into the lib.  This causes failures when the
shared libstdc++ is used but some c++ symbols are satisfied from
libgccjit.

This implements an export file for Darwin (which is currently
manually created by cross-checking libgccjit.map).  Ideally we'd
script this, at some point.  Update libtool current and age to
reflect the current ABI version (we are not bumping the SO name
at this stage).

This fixes a number of new failures in jit testing.

gcc/jit/ChangeLog:

* Make-lang.in: Implement exports list, and use a shared
libgcc.
* libgccjit.exports: New file.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
(cherry picked from commit b120e355e59142bd15d6b010461d07236288d843)
gcc/jit/Make-lang.in
gcc/jit/libgccjit.exports [new file with mode: 0644]