]> 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>
Tue, 2 Apr 2024 11:33:56 +0000 (12:33 +0100)
commitb120e355e59142bd15d6b010461d07236288d843
tree57fa956bef9eb4d528620bac7aa52ea3c2508f96
parent799a056cf804f433ce0050a5a6bf900f7a01ecb1
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>
gcc/jit/Make-lang.in
gcc/jit/libgccjit.exports [new file with mode: 0644]