summaryrefslogtreecommitdiff
path: root/sysutils/lsof/Makefile
diff options
context:
space:
mode:
authorLarry Rosenman <ler@FreeBSD.org>2020-01-10 18:35:20 +0000
committerLarry Rosenman <ler@FreeBSD.org>2020-01-10 18:35:20 +0000
commitb61cfbf88df81a87009c3330d128a9a974147284 (patch)
tree669326ae270161918f450176fb67c46b5839b36c /sysutils/lsof/Makefile
parentUpdate to 20200110. (diff)
sysutils/lsof: add a PPC64 work around for needing -lzpool
PR: 242833 Submitted by: luciano@vespaperitivo.it
Notes
Notes: svn path=/head/; revision=522582
Diffstat (limited to 'sysutils/lsof/Makefile')
-rw-r--r--sysutils/lsof/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/sysutils/lsof/Makefile b/sysutils/lsof/Makefile
index 07b8f72b9d7d..0d1166e28d3f 100644
--- a/sysutils/lsof/Makefile
+++ b/sysutils/lsof/Makefile
@@ -1,6 +1,9 @@
# Created by: David O'Brien <obrien@FreeBSD.org>
# $FreeBSD$
+# note: If someone has a fix for a particular ARCH please feel free
+# to commit it. I (ler) don't have access to all the ARCH's
+
PORTNAME= lsof
DISTVERSION= 4.93.2
PORTREVISION= 9
@@ -30,6 +33,13 @@ CONFIGURE_SCRIPT= Configure
CONFIGURE_ARGS= -n freebsd
CONFIGURE_ENV= LSOF_CC="${CC}" FREEBSD_SYS="${SRC_BASE}/sys"
+# PPC64 needs -lzpool for reasons unknown. If someone can
+# figure out why, I (ler) am all ears.
+.if ${ARCH} == powerpc64
+CONFIGURE_ENV+= LSOF_CFGL="-lzpool"
+. endif
+
+
.if !exists(${SRC_BASE}/sys/kern/kern_lockf.c)
IGNORE+= requires kernel sources
.endif