From ccf1990a81ec57b61baf10494641142e38b41b96 Mon Sep 17 00:00:00 2001 From: Cassandra Heart Date: Tue, 21 Jan 2025 00:34:03 -0600 Subject: [PATCH] manually build flint as static library, use pkgconfig link --- node/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/build.sh b/node/build.sh index 60740c9..b60d02c 100755 --- a/node/build.sh +++ b/node/build.sh @@ -19,7 +19,7 @@ case "$os_type" in # Check if the architecture is ARM if [[ "$(uname -m)" == "arm64" ]]; then # MacOS ld doesn't support -Bstatic and -Bdynamic, so it's important that there is only a static version of the library - go build -ldflags "-linkmode 'external' -extldflags '-L$BINARIES_DIR -L/opt/homebrew/Cellar/mpfr/4.2.1/lib -I/opt/homebrew/Cellar/mpfr/4.2.1/include -L/opt/homebrew/Cellar/gmp/6.3.0/lib -I/opt/homebrew/Cellar/gmp/6.3.0/include -L/opt/homebrew/Cellar/flint/3.1.3-p1/lib -I/opt/homebrew/Cellar/flint/3.1.3-p1/include -lbls48581 -lstdc++ -lvdf -ldl -lm -lflint -lgmp -lmpfr'" "$@" + go build -ldflags "-linkmode 'external' -extldflags '-L$BINARIES_DIR -L/opt/homebrew/Cellar/mpfr/4.2.1/lib -I/opt/homebrew/Cellar/mpfr/4.2.1/include -L/opt/homebrew/Cellar/gmp/6.3.0/lib -I/opt/homebrew/Cellar/gmp/6.3.0/include -lbls48581 -lvdf -ldl -lm -lflint -lgmp -lmpfr'" "$@" else echo "Unsupported platform" exit 1