git: 12a9620a124f - main - misc/opennn: fix build on powerpc

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Mon, 29 Jul 2024 15:10:23 UTC
The branch main has been updated by pkubaj:

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

commit 12a9620a124fca9c8f0614e493c94ed2372d058b
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2024-07-29 11:37:17 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2024-07-29 15:10:10 +0000

    misc/opennn: fix build on powerpc
    
    cc1plus: out of memory allocating 81890032 bytes after a total of 0 bytes
---
 misc/opennn/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/misc/opennn/Makefile b/misc/opennn/Makefile
index 9b9cb4b041dd..a48d5e4a8f5e 100644
--- a/misc/opennn/Makefile
+++ b/misc/opennn/Makefile
@@ -25,6 +25,7 @@ CMAKE_OFF=	OpenNN_BUILD_EXAMPLES OpenNN_BUILD_TESTS
 CMAKE_TESTING_ON=	OpenNN_BUILD_TESTS # some tests fail, see https://github.com/Artelnics/opennn/issues/229
 CMAKE_TESTING_TARGET=	tests
 
+CXXFLAGS_powerpc=	-O1
 CXXFLAGS_powerpc64=	-mvsx
 LDFLAGS+=	-pthread
 LDFLAGS_powerpc=	-latomic