diff --git a/Makefile b/Makefile index 299e3c574..e3862aa92 100644 --- a/Makefile +++ b/Makefile @@ -1003,7 +1003,9 @@ endif IS_DEV_OR_DEBUG := $(or $(filter 1,$(DEVELOPMENT)),$(filter 1,$(DEBUG)),0) ifeq ($(IS_DEV_OR_DEBUG),0) CFLAGS += -fno-ident -fno-common -ffile-prefix-map="$(PWD)"=. -D__DATE__="\"\"" -D__TIME__="\"\"" -Wno-builtin-macro-redefined - LDFLAGS += -Wl,--build-id=none + ifeq ($(OSX_BUILD),0) + LDFLAGS += -Wl,--build-id=none + endif endif # Prevent a crash with -sopt