MFH: r552304

sysutils/lsof: fix build on 12.2-RC2 on powerpc(64)

Link also to libzfs:
/usr/lib/libzpool.so: undefined reference to `get_system_hostid'

Approved by:	portmgr (fix build blanket)
This commit is contained in:
Piotr Kubaj 2020-10-14 07:50:22 +00:00
parent f986122c7e
commit 895771cafb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/branches/2020Q4/; revision=552305

View File

@ -48,7 +48,7 @@ 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 || ${ARCH} == powerpc
CONFIGURE_ENV+= LSOF_CFGL="-lzpool"
CONFIGURE_ENV+= LSOF_CFGL="-lzfs -lzpool"
. endif
.if !exists(${SRC_BASE}/sys/kern/kern_lockf.c)