git: 4eb168e0e81e - main - sysutils/passwordsafe: fix build on powerpc
Piotr Kubaj
pkubaj at FreeBSD.org
Sun Jul 18 19:18:09 UTC 2021
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=4eb168e0e81e25e39611231ee2a4aafa828e1055
commit 4eb168e0e81e25e39611231ee2a4aafa828e1055
Author: Piotr Kubaj <pkubaj at FreeBSD.org>
AuthorDate: 2021-07-18 19:03:44 +0000
Commit: Piotr Kubaj <pkubaj at FreeBSD.org>
CommitDate: 2021-07-18 19:03:44 +0000
sysutils/passwordsafe: fix build on powerpc
ItemData.cpp:1942:23: error: variable-sized object may not be initialized
unsigned char buf[len] = {0};
---
sysutils/passwordsafe/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sysutils/passwordsafe/Makefile b/sysutils/passwordsafe/Makefile
index 21f050322696..901160657179 100644
--- a/sysutils/passwordsafe/Makefile
+++ b/sysutils/passwordsafe/Makefile
@@ -46,7 +46,7 @@ ALL_TARGET= unicoderelease
.include <bsd.port.options.mk>
-.if defined(PPC_ABI) && ${PPC_ABI} == ELFv2
+.if (defined(PPC_ABI) && ${PPC_ABI} == ELFv2) || ${ARCH} == powerpc
USES+= compiler:gcc-c++11-lib
.else
USES+= compiler:c++11-lang
More information about the dev-commits-ports-all
mailing list