diff --git a/common/unix-release.mk b/common/unix-release.mk index b5a46c02..5533ce15 100644 --- a/common/unix-release.mk +++ b/common/unix-release.mk @@ -3,11 +3,11 @@ ARCH := $(shell uname -m) ifeq (0,$(shell $(CC) --version | grep clang && echo 1 || echo 0)) CFLAGS += -s else + ifeq (1,$(shell ld.lld --version > /dev/null && echo 1 || echo 0)) +LDFLAGS := -s -fuse-ld=lld + else LDFLAGS := -s -endif - -ifeq (1,$(shell ld.lld --version > /dev/null && echo 1 || echo 0)) -LDFLAGS += -fuse-ld=lld + endif endif ifneq (,$(filter $(ARCH),aarch64 arm64))