]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
INSTALL: Document arguments of --enable-symbol-versions.
authorLasse Collin <lasse.collin@tukaani.org>
Fri, 15 Mar 2024 15:43:39 +0000 (17:43 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Tue, 21 May 2024 21:34:26 +0000 (00:34 +0300)
(cherry picked from commit 8a25ba024d55610c448c6e4f1400a00bae51b493)
(cherry picked from commit 44a5c1374e9622054a20dc48c02bd146cbd51ec0)

INSTALL

diff --git a/INSTALL b/INSTALL
index 779e717be2918cba0576b6af4d4c9424ce5b7263..fb83ff07ebb798267a27ef4f790509a7b37fb804 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -455,10 +455,45 @@ XZ Utils Installation
                                 sandboxing. If no Capsicum support
                                 is found, configure will give an error.
 
-    --enable-symbol-versions
-                Use symbol versioning for liblzma. This is enabled by
-                default on GNU/Linux, other GNU-based systems, and
-                FreeBSD.
+    --enable-symbol-versions[=VARIANT]
+                Use symbol versioning for liblzma shared library.
+                This is enabled by default on GNU/Linux (glibc only),
+                other GNU-based systems, and FreeBSD.
+
+                Symbol versioning is never used for static liblzma. This
+                option is ignored when not building a shared library.
+
+                Supported VARIANTs:
+
+                        no      Disable symbol versioning. This is the
+                                same as using --disable-symbol-versions.
+
+                        auto    Autodetect between "no", "linux",
+                                and "generic".
+
+                        yes     Autodetect between "linux" and
+                                "generic". This forces symbol
+                                versioning to be used when
+                                building a shared library.
+
+                        generic Generic version is the default for
+                                FreeBSD and GNU/Linux on MicroBlaze.
+
+                                This is also used on GNU/Linux when
+                                building with NVIDIA HPC Compiler
+                                because the compiler doesn't support
+                                the features required for the "linux"
+                                variant below.
+
+                        linux   Special version for GNU/Linux (glibc
+                                only). This adds a few extra symbol
+                                versions for compatibility with binaries
+                                that have been linked against a liblzma
+                                version that has been patched with
+                                "xz-5.2.2-compat-libs.patch" from
+                                RHEL/CentOS 7. That patch was used
+                                by some build tools outside of
+                                RHEL/CentOS 7 too.
 
     --enable-debug
                 This enables the assert() macro and possibly some other