aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/Scripts
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2016-05-09 18:12:18 +0800
committerMathieu Arnold <mat@FreeBSD.org>2016-05-09 18:12:18 +0800
commit88f3d729d202ca8ba26312934552034ff77ae714 (patch)
treec371af3a84d6ce021bb9e6678e7e305ecb5443c2 /Mk/Scripts
parent6b1c976eb36bf606a8d57460c0f3b6d9fefe3286 (diff)
downloadfreebsd-ports-gnome-88f3d729d202ca8ba26312934552034ff77ae714.tar.gz
freebsd-ports-gnome-88f3d729d202ca8ba26312934552034ff77ae714.tar.zst
freebsd-ports-gnome-88f3d729d202ca8ba26312934552034ff77ae714.zip
Try to simplify how libperl.so is looked for.
PR: 209123 Submitted by: mat Exp-run by: antoine With hat: perl@ Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D6107
Diffstat (limited to 'Mk/Scripts')
-rw-r--r--Mk/Scripts/qa.sh23
1 files changed, 13 insertions, 10 deletions
diff --git a/Mk/Scripts/qa.sh b/Mk/Scripts/qa.sh
index aca3df2e69de..ffcb3c42df7f 100644
--- a/Mk/Scripts/qa.sh
+++ b/Mk/Scripts/qa.sh
@@ -255,16 +255,19 @@ libperl() {
;;
*0)
has_some_libperl_so=1
- case "${found}" in
- *1?)
- warn "${f} does not have a rpath to ${LIBPERL}, not respecting lddlflags?"
- ;;
- esac
- case "${found}" in
- 1??)
- warn "${f} does not have a runpath to ${LIBPERL}, not respecting lddlflags?"
- ;;
- esac
+ # Older Perl did not USE_LDCONFIG.
+ if [ ! -f ${LOCALBASE}/${LDCONFIG_DIR}/perl5 ]; then
+ case "${found}" in
+ *1?)
+ warn "${f} does not have a rpath to ${LIBPERL}, not respecting lddlflags?"
+ ;;
+ esac
+ case "${found}" in
+ 1??)
+ warn "${f} does not have a runpath to ${LIBPERL}, not respecting lddlflags?"
+ ;;
+ esac
+ fi
;;
esac
# Use heredoc to avoid losing rc from find|while subshell