summaryrefslogtreecommitdiff
path: root/net-fs/openafs/files/0010-libperl.patch
blob: b73ccf19e400b65e45a2ddfa8133b2ede67ab72b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From b9bd06a715cf2a68c73d6bdf57d475ae5d1d61d5 Mon Sep 17 00:00:00 2001
From: Andrew Savchenko <bircoph@gmail.com>
Date: Sat, 5 Jan 2019 10:15:03 +0300
Subject: [PATCH 10/13] libperl

Filter out -lnsl reported by perl.
libnsl it is neither needed nor provided.

(cherry picked from commit 243186f42cc84af2ff90f6710c6e76b1a4121064)
(cherry picked from commit 99183cb191e653288ed8ed656ecd9f484a1715e3)
(cherry picked from commit e27f7a255c4f064c149d57ed965523ef9932f436)
---
 src/libuafs/Makefile.common.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libuafs/Makefile.common.in b/src/libuafs/Makefile.common.in
index 941605027176..eca360777151 100644
--- a/src/libuafs/Makefile.common.in
+++ b/src/libuafs/Makefile.common.in
@@ -142,7 +142,7 @@ RX	=../rx
 AFSINT=../afsint
 LIB	=../lib
 SWIG_PERL_CFLAGS = -fPIC `perl -MExtUtils::Embed -e ccopts`
-SWIG_PERL_LDFLAGS = -fPIC `perl -MExtUtils::Embed -e ldopts`
+SWIG_PERL_LDFLAGS = -fPIC `perl -MExtUtils::Embed -e ldopts | sed "s/-lnsl //g"`
 SWIG = @SWIG@
 LIBUAFS_BUILD_PERL = @LIBUAFS_BUILD_PERL@
 
-- 
2.45.2