Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Jan 2020 15:41:15 +0000 (UTC)
From:      Larry Rosenman <ler@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r523727 - head/sysutils/lsof
Message-ID:  <202001211541.00LFfFF2096886@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ler
Date: Tue Jan 21 15:41:15 2020
New Revision: 523727
URL: https://svnweb.freebsd.org/changeset/ports/523727

Log:
  sysutils/lsof: fix build on powerpc, powerpc64, powerpcse
  
  PR:		242758
  Submitted by:	pkubaj
  MFH:		2020Q1

Modified:
  head/sysutils/lsof/Makefile

Modified: head/sysutils/lsof/Makefile
==============================================================================
--- head/sysutils/lsof/Makefile	Tue Jan 21 15:31:08 2020	(r523726)
+++ head/sysutils/lsof/Makefile	Tue Jan 21 15:41:15 2020	(r523727)
@@ -25,6 +25,17 @@ HAS_CONFIGURE=	yes
 USE_GITHUB=	yes
 GH_ACCOUNT=	lsof-org
 
+OPTIONS_DEFINE_powerpc64=	AIM BOOKE
+OPTIONS_DEFAULT_powerpc64=	AIM
+
+AIM_DESC=	Set for AIM hardware
+AIM_CFLAGS=	-DAIM
+BOOKE_DESC=	Set for BOOKE hardware
+BOOKE_CFLAGS=	-DBOOKE
+
+CFLAGS_powerpc=	-DAIM
+CFLAGS_powerpcspe=	-DBOOKE
+
 SHEBANG_FILES=	scripts/sort_res.perl5
 
 .include <bsd.port.pre.mk>
@@ -33,12 +44,11 @@ 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 
+# 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"
+.if ${ARCH} == powerpc64 || ${ARCH} == powerpc
+CONFIGURE_ENV+=	LSOF_CFGL="-lzpool"
 . endif
-
 
 .if !exists(${SRC_BASE}/sys/kern/kern_lockf.c)
 IGNORE+=		requires kernel sources



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202001211541.00LFfFF2096886>