Skip to content

Commit 3293e91

Browse files
committed
Skip unsupported LDFLAGS in macOS
1 parent 1d866ec commit 3293e91

File tree

1 file changed

+5
-1
lines changed
  • contracts/c-sphincs-all-in-one-lock

1 file changed

+5
-1
lines changed

contracts/c-sphincs-all-in-one-lock/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@ CFLAGS += --target=riscv64 -march=rv64imc_zba_zbb_zbc_zbs \
5050
CFLAGS += -I $(SPHINCS_PLUS_DIR) -I $(CUR_BUILD) -I $(cur_dir)/utils
5151
# CFLAGS += -DCKB_C_STDLIB_PRINTF
5252

53-
LDFLAGS := -static -Wl,--gc-sections
53+
OS := $(shell uname -s)
54+
LDFLAGS :=
55+
if neq($(OS),Darwin)
56+
LDFLAGS += -static -Wl,--gc-sections
57+
endif
5458

5559
default: build
5660

0 commit comments

Comments
 (0)