git: 47a5163a4d71 - main - math/nauty: fix build on powerpc
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 12 Jan 2025 21:42:30 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=47a5163a4d715a2262ffe9687769b981cf2c6a7f
commit 47a5163a4d715a2262ffe9687769b981cf2c6a7f
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2025-01-02 10:56:24 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2025-01-12 21:35:45 +0000
math/nauty: fix build on powerpc
Works around the clang crash, which seems to be fixed in the new snapshots:
PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: clang -cc1 -triple powerpc-unknown-freebsd14.2 -emit-obj -O2 -vectorize-loops gutil2-502595.c
1. <eof> parser at end of file
2. Optimizer
Segmentation fault (core dumped)
---
math/nauty/Makefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/math/nauty/Makefile b/math/nauty/Makefile
index c9f73459b98a..2104b3c2bdb7 100644
--- a/math/nauty/Makefile
+++ b/math/nauty/Makefile
@@ -31,6 +31,8 @@ TEST_TARGET= check
OPTIONS_DEFINE= DOCS
+CFLAGS_powerpc= -O1
+
post-build: # build shared libraries: based on how static libraries are created
# rebuild .o files with -fPIC
@cd ${WRKSRC} ; \