diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2022-09-21 22:24:33 +0200 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2022-09-21 22:26:53 +0200 |
commit | 8c69fc20e6c71c3c5e71c8c9fcfb08ea9d5eb48d (patch) | |
tree | bc5ca999b54417ccf107691f2e28f44f6a29d6a3 /lang/perl5-devel/files/patch-hints_freebsd.sh | |
parent | security/uacme: Adopt/Update to upstream/1.7.3 (diff) |
lang/perl5*: alternative workaround for lld 15 and dtrace enabled
Modify the workaround committed in 4ae8ff941b29 by only adding
-Wl,--allow-multiple-definition to the two link command lines that
require it, instead of adding it to hints/freebsd.sh
Otherwise, that linker flag is emitted into perl's global configuration
(/usr/local/lib/perl5/5.xx/mach/Config_heavy.pl), and might be used by
other ports which link in libperl, such as www/mod_perl2, which cannot
correctly handle any unexpected linker flags, leading to errors.
PR: 265516
Reported by: lev
Approved by: maintainer timeout (1 month)
Fixes: 4ae8ff941b29
MFH: 2022Q3
Diffstat (limited to 'lang/perl5-devel/files/patch-hints_freebsd.sh')
-rw-r--r-- | lang/perl5-devel/files/patch-hints_freebsd.sh | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/lang/perl5-devel/files/patch-hints_freebsd.sh b/lang/perl5-devel/files/patch-hints_freebsd.sh index 359ca12088c1..9907c745ded7 100644 --- a/lang/perl5-devel/files/patch-hints_freebsd.sh +++ b/lang/perl5-devel/files/patch-hints_freebsd.sh @@ -22,14 +22,3 @@ Remove libs that are not here on FreeBSD. ;; esac -@@ -142,8 +148,8 @@ case "$osvers" in - *) - libpth="/usr/lib /usr/local/lib" - glibpth="/usr/lib /usr/local/lib" -- ldflags="-Wl,-E " -- lddlflags="-shared " -+ ldflags="-Wl,-E,--allow-multiple-definition" -+ lddlflags="-shared -Wl,--allow-multiple-definition" - cccdlflags='-DPIC -fPIC' - ;; - esac |