From dd2b94ff68e169685189a472283ae890e0fc0955 Mon Sep 17 00:00:00 2001 From: "Daisuke Fujimura (fd0)" Date: Sun, 18 Feb 2024 09:13:09 +0900 Subject: [PATCH] Build on cygwin --- Makefile | 2 ++ 1 file changed, 2 insertions(+) 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