mirror of
https://git.freebsd.org/ports.git
synced 2025-07-12 06:49:18 -04:00
- Patch libtool so it uses the same library version specification as on Darwin, Linux and other systems. Given the version current:revision:age a library will be given the extension .so.major.age.revision with major equal to current-age. Before libtool would use .so.current on FreeBSD. - Patch libtoolize to remove two cases of umask 0 that caused libltdl files to be copied world writable (--ltdl option) - Let USES=libtool patch this new version correctly - Adjust all ports with USES=libtool:build and bump PORTREVISION on their dependent ports if a library version changed PR: 194068 Exp-run by: antoine Approved by: portmgr (antoine)
30 lines
811 B
Bash
30 lines
811 B
Bash
--- build-aux/ltmain.sh.orig 2013-10-26 22:53:58 UTC
|
|
+++ build-aux/ltmain.sh
|
|
@@ -8598,13 +8598,13 @@ func_mode_link ()
|
|
#
|
|
case $version_type in
|
|
# correct linux to gnu/linux during the next big refactor
|
|
- darwin|linux|osf|windows|none)
|
|
+ darwin|freebsd-elf|linux|osf|windows|none)
|
|
func_arith $number_major + $number_minor
|
|
current=$func_arith_result
|
|
age=$number_minor
|
|
revision=$number_revision
|
|
;;
|
|
- freebsd-aout|freebsd-elf|qnx|sunos)
|
|
+ freebsd-aout|qnx|sunos)
|
|
current=$number_major
|
|
revision=$number_minor
|
|
age=0
|
|
@@ -8690,8 +8690,9 @@ func_mode_link ()
|
|
;;
|
|
|
|
freebsd-elf)
|
|
- major=.$current
|
|
- versuffix=.$current
|
|
+ func_arith $current - $age
|
|
+ major=.$func_arith_result
|
|
+ versuffix=$major.$age.$revision
|
|
;;
|
|
|
|
irix | nonstopux)
|