git: ba410f875bd3 - main - devel/glog: fix build on powerpc

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Sun, 04 Aug 2024 12:01:32 UTC
The branch main has been updated by pkubaj:

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

commit ba410f875bd3cea0aa9862d99e29ef4c29f2053c
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2024-08-02 11:28:30 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2024-08-04 12:00:54 +0000

    devel/glog: fix build on powerpc
    
    In file included from /wrkdirs/usr/ports/devel/glog/work/glog-0.7.1/src/stacktrace.cc:37:
    /wrkdirs/usr/ports/devel/glog/work/glog-0.7.1/src/stacktrace_powerpc-inl.h:126:4: error: Need to specify the PPC ABI for your architecture.
      126 | #  error Need to specify the PPC ABI for your architecture.
          |    ^
    1 error generated.
---
 devel/glog/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/devel/glog/Makefile b/devel/glog/Makefile
index 7751a837a4ac..ca09c2e4b09a 100644
--- a/devel/glog/Makefile
+++ b/devel/glog/Makefile
@@ -29,4 +29,6 @@ PLIST_SUB=	PORTVERSION=${PORTVERSION}
 GH_ACCOUNT=	google
 USE_GITHUB=	yes
 
+CXXFLAGS_powerpc=	-D_CALL_SYSV
+
 .include <bsd.port.mk>