diff --git a/Makefile b/Makefile index 290136c..87364c4 100644 --- a/Makefile +++ b/Makefile @@ -50,9 +50,11 @@ CFLAGS += -D_FORTIFY_SOURCE=2 -fstack-protector-all -fPIE # Don't enable some hardening flags on OS X because it uses an old version of Clang ifneq ($(OS), Darwin) ifneq ($(OS), SunOS) +ifneq ($(findstring CYGWIN,$(OS)),CYGWIN) LDFLAGS += -pie -z relro -z now endif endif +endif # Force C11 mode to fix the build on very old version of GCC CFLAGS += -std=gnu11