aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorMatthias Klose <doko@ubuntu.com>2025-03-13 07:22:02 +0100
committerMatthias Klose <doko@ubuntu.com>2025-03-13 07:22:02 +0100
commitf1baee38ffe044ab0a7ecbacad965bbeafae7fc4 (patch)
tree3c970b9be75be3929ee79a42f62e494286ae4527 /gcc/doc
parent4e6967aba1aaa9dfc362ce59b3d9358a6a15603c (diff)
downloadgcc-f1baee38ffe044ab0a7ecbacad965bbeafae7fc4.zip
gcc-f1baee38ffe044ab0a7ecbacad965bbeafae7fc4.tar.gz
gcc-f1baee38ffe044ab0a7ecbacad965bbeafae7fc4.tar.bz2
Allow to build libgccjit with a soname bound to the GCC major version
When configuring GCC with --program-suffix=-$(BASE_VERSION) to allow installation multiple GCC versions in parallel, the executable of the driver (gcc-$(BASE_VERSION)) gets recorded in the libgccjit.so.0 library. Assuming, that you only install the libgccjit.so.0 library from the newest GCC, you have a libgccjit installed, which always calls back to the newest installed version of GCC. I'm not saying that the ABI is changing, but I'd like to see the libgccjit calling out to the corresponding compiler, and therefore installing a libgccjit with a soname that matches the GCC major version. The downside is having to rebuild packages built against libgccjit with each major GCC version, but looking at the reverse dependencies, at least for package builds, only emacs is using libgccjit. My plan to use this feature is to build a libgccjit0 using the default GCC (e.g. gcc-14), and a libgccjit15, when building a newer GCC. When changing the GCC default to 15, building a libgccjit0 from gcc-15, and a libgccjit14 from gcc-14. When configuring without --enable-versioned-jit, the behavior is unchanged. 2025-03-13 Matthias Klose <doko@ubuntu.com> gcc/ * configure.ac: Add option --enable-versioned-jit. * configure: Regenerate. * Makefile.in: Move from jit/Make-lang.in, setting value from configure.ac. * doc/install.texi: Document option --enable-versioned-jit. gcc/jit/ * Make-lang.in (LIBGCCJIT_VERSION_NUM): Move to ../Makefile.in.
Diffstat (limited to 'gcc/doc')
-rw-r--r--gcc/doc/install.texi4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi
index 994fadc..3085296 100644
--- a/gcc/doc/install.texi
+++ b/gcc/doc/install.texi
@@ -1148,6 +1148,10 @@ This option is required when building the libgccjit.so library.
Contrast with @option{--enable-shared}, which affects @emph{target}
libraries.
+@item --enable-versioned-jit
+Specify that the @samp{libgccjit} library is built with a soname matching
+the GCC major version.
+
@item --enable-host-pie
Specify that the @emph{host} executables should be built into
position-independent executables (with @option{-fPIE} and @option{-pie}),