Skip to content

Commit d3a91ec

Browse files
lystopadGiulio2002
andauthoredMar 17, 2025··
Cherry-Pick: Fixed sigill in released files (#14176) (#14184)
As requested in #14176 (comment) Co-authored-by: Giulio rebuffo <giulio.rebuffo@gmail.com>
1 parent a63259d commit d3a91ec

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed
 

‎.goreleaser.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ builds:
3030
- CC=o64-clang
3131
- CXX=o64-clang++
3232
- CGO_LDFLAGS={{ .Env.CGO_LDFLAGS_DEFAULT_DARWIN }}
33-
- CGO_CFLAGS={{ .Env.CGO_CFLAGS_DEFAULT }}
33+
- CGO_CFLAGS={{ .Env.CGO_CFLAGS_DEFAULT }} -D__BLST_PORTABLE__
3434
tags: [ nosqlite, noboltdb, nosilkworm]
3535
flags:
3636
- -trimpath
@@ -416,7 +416,7 @@ builds:
416416
env:
417417
- CC=x86_64-linux-gnu-gcc
418418
- CXX=x86_64-linux-gnu-g++
419-
- CGO_CFLAGS={{ .Env.CGO_CFLAGS_DEFAULT }}
419+
- CGO_CFLAGS={{ .Env.CGO_CFLAGS_DEFAULT }} -D__BLST_PORTABLE__
420420
- CGO_LDFLAGS={{ .Env.CGO_LDFLAGS_DEFAULT }}
421421
tags: [ nosqlite, noboltdb, nosilkworm ]
422422
flags:

‎Makefile

+2-7
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,8 @@ CGO_CFLAGS += -DMDBX_DISABLE_VALIDATION=0 # Can disable it on CI by separated PR
2626
#CGO_CFLAGS += -DMDBX_ENABLE_PGOP_STAT=0 # Disabled by default, but may be useful for performance debugging
2727
CGO_CFLAGS += -DMDBX_ENV_CHECKPID=0 # Erigon doesn't do fork() syscall
2828

29-
# If it is arm64 or aarch64, then we need to use portable version of blst. use or with stringw "arm64" and "aarch64" to support both
30-
ifeq ($(shell uname -m), arm64)
31-
CGO_CFLAGS += -D__BLST_PORTABLE__
32-
endif
33-
ifeq ($(shell uname -m), aarch64)
34-
CGO_CFLAGS += -D__BLST_PORTABLE__
35-
endif
29+
30+
CGO_CFLAGS += -D__BLST_PORTABLE__
3631

3732
# Configure GOAMD64 env.variable for AMD64 architecture:
3833
ifeq ($(shell uname -m),x86_64)

0 commit comments

Comments
 (0)
Please sign in to comment.