git: 9bdab524e935 - main - devel/cargo-leptos: Attempt to fix on i386
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 27 Mar 2025 07:28:03 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=9bdab524e935249fc0fa0fbe9bf06611df363d9a
commit 9bdab524e935249fc0fa0fbe9bf06611df363d9a
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-03-27 07:12:56 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-03-27 07:12:56 +0000
devel/cargo-leptos: Attempt to fix on i386
---
devel/cargo-leptos/Makefile | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/devel/cargo-leptos/Makefile b/devel/cargo-leptos/Makefile
index 75e90de5a5f8..75fe857b9e79 100644
--- a/devel/cargo-leptos/Makefile
+++ b/devel/cargo-leptos/Makefile
@@ -663,4 +663,10 @@ PLIST_FILES= bin/${PORTNAME}
LTO_UNSAFE= yes
.endif
+# attempt to fix on i386: ld: error: undefined symbol: __atomic_fetch_add_8
+.if ${ARCH} == i386 && !${CFLAGS:M-march=*}
+CFLAGS+= -march=i586
+CXXFLAGS+= -march=i586
+.endif
+
.include <bsd.port.mk>