diff --git a/Makefile b/Makefile index 98453bb..0667217 100644 --- a/Makefile +++ b/Makefile @@ -48,9 +48,12 @@ CFLAGS += -Os -g BUILD_STYLE = RELEASE endif LIBS += -lc + +ifeq ($(TARGET_OS),Linux) ifneq ($(shell echo '$(BUILD_STYLE)' | grep -q '[A-Z]\+SAN' && echo 1),1) LDFLAGS += -static -no-pie endif +endif ifneq ($(BAKERAIN_DEVELOPE_R),) CFLAGS += -DBAKERAIN_DEVELOPE_R="\"$(BAKERAIN_DEVELOPE_R)\""