summaryrefslogtreecommitdiff
path: root/lang/perl5.38/files/patch-hints_freebsd.sh
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2023-06-24 20:45:36 +0200
committerMathieu Arnold <mat@FreeBSD.org>2023-06-24 20:53:43 +0200
commit0623388de841ec08d7a038283eccb8f24cb95d53 (patch)
tree8421aacdd28db7bc6fb965ca8bf2d6122920dc96 /lang/perl5.38/files/patch-hints_freebsd.sh
parentlang/perl5-devel: update to latest commit (diff)
lang/perl5.38: add latest Perl version (in RC2)
(cherry picked from commit b5cbd10fb4052bfe3f61536eabcdcf02a4fd606a)
Diffstat (limited to 'lang/perl5.38/files/patch-hints_freebsd.sh')
-rw-r--r--lang/perl5.38/files/patch-hints_freebsd.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/lang/perl5.38/files/patch-hints_freebsd.sh b/lang/perl5.38/files/patch-hints_freebsd.sh
new file mode 100644
index 000000000000..9907c745ded7
--- /dev/null
+++ b/lang/perl5.38/files/patch-hints_freebsd.sh
@@ -0,0 +1,24 @@
+Remove libs that are not here on FreeBSD.
+
+--- hints/freebsd.sh.orig 2022-06-19 19:29:35 UTC
++++ hints/freebsd.sh
+@@ -88,6 +88,8 @@ case "$osvers" in
+ esac
+ libswanted=`echo $libswanted | sed 's/ malloc / /'`
+ libswanted=`echo $libswanted | sed 's/ bind / /'`
++ libswanted=`echo $libswanted | sed 's/ dl / /'`
++ libswanted=`echo $libswanted | sed 's/ c / /'`
+ # iconv gone in Perl 5.8.1, but if someone compiles 5.8.0 or earlier.
+ libswanted=`echo $libswanted | sed 's/ iconv / /'`
+ d_setregid='define'
+@@ -102,6 +104,10 @@ case "$osvers" in
+ ;;
+ esac
+ libswanted=`echo $libswanted | sed 's/ malloc / /'`
++ libswanted=`echo $libswanted | sed 's/ bind / /'`
++ libswanted=`echo $libswanted | sed 's/ dl / /'`
++ libswanted=`echo $libswanted | sed 's/ iconv / /'`
++ libswanted=`echo $libswanted | sed 's/ c / /'`
+ ;;
+ esac
+