git: f2937445651a - main - lang/oo2c: fix build on armv7 and powerpc

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Fri, 05 Jan 2024 21:04:53 UTC
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f2937445651a7241924a1d78202ce01aa9f229c1

commit f2937445651a7241924a1d78202ce01aa9f229c1
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2024-01-05 08:46:37 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2024-01-05 21:03:50 +0000

    lang/oo2c: fix build on armv7 and powerpc
---
 lang/oo2c/Makefile | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/lang/oo2c/Makefile b/lang/oo2c/Makefile
index acda810164fc..04c31557fc4f 100644
--- a/lang/oo2c/Makefile
+++ b/lang/oo2c/Makefile
@@ -37,14 +37,10 @@ post-patch:
 
 .include <bsd.port.pre.mk>
 
-.if ${ARCH} == i386
+.if ${ARCH} == armv7 || ${ARCH} == i386 || ${ARCH} == powerpc
 BITS=		32
 .else
 BITS=		64
 .endif
 
-.if defined(PPC_ABI) && ${PPC_ABI} == ELFv1
-CFLAGS+=	-fnested-functions
-.endif
-
 .include <bsd.port.post.mk>