summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-01-14 21:23:57 +0100
committerMichał Górny <mgorny@gentoo.org>2024-01-15 16:58:27 +0100
commit221159b1ca716e208abcd9fc2e3d7efad0db9446 (patch)
tree107a968fd74c9910c31a68d4ccaeeaddcf9682f7 /dev-build/libtool/files/libtool-2.4.3-use-linux-version-in-fbsd.patch
parentMove {sys-devel → dev-build}/slibtool (diff)
downloadgentoo-221159b1ca716e208abcd9fc2e3d7efad0db9446.tar.gz
gentoo-221159b1ca716e208abcd9fc2e3d7efad0db9446.tar.bz2
gentoo-221159b1ca716e208abcd9fc2e3d7efad0db9446.zip
Move {sys-devel → dev-build}/libtool
Signed-off-by: Michał Górny <mgorny@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/34807 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-build/libtool/files/libtool-2.4.3-use-linux-version-in-fbsd.patch')
-rw-r--r--dev-build/libtool/files/libtool-2.4.3-use-linux-version-in-fbsd.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/dev-build/libtool/files/libtool-2.4.3-use-linux-version-in-fbsd.patch b/dev-build/libtool/files/libtool-2.4.3-use-linux-version-in-fbsd.patch
new file mode 100644
index 000000000000..aa1e870649b6
--- /dev/null
+++ b/dev-build/libtool/files/libtool-2.4.3-use-linux-version-in-fbsd.patch
@@ -0,0 +1,38 @@
+Force linux-style versioning when generating shared libraries on
+Gentoo/FreeBSD hosts only.
+
+Patch by Diego Elio Pettenò
+
+http://bugs.gentoo.org/109105
+
+--- a/m4/libtool.m4
++++ b/m4/libtool.m4
+@@ -2666,7 +2666,14 @@
+ *) objformat=elf ;;
+ esac
+ fi
+- version_type=freebsd-$objformat
++ # Handle Gentoo/FreeBSD as it was Linux
++ case $host_vendor in
++ gentoo)
++ version_type=linux ;;
++ *)
++ version_type=freebsd-$objformat ;;
++ esac
++
+ case $version_type in
+ freebsd-elf*)
+ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+@@ -2678,6 +2685,12 @@
+ library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
+ need_version=yes
+ ;;
++ linux)
++ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
++ soname_spec='${libname}${release}${shared_ext}$major'
++ need_lib_prefix=no
++ need_version=no
++ ;;
+ esac
+ shlibpath_var=LD_LIBRARY_PATH
+ case $host_os in