Skip to content

Commit

Permalink
Merge pull request #306 from fd00/cygwin
Browse files Browse the repository at this point in the history
Build on cygwin
  • Loading branch information
rbsec authored Feb 22, 2024
2 parents c1e3d1b + dd2b94f commit 7b44bd6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7b44bd6

Please sign in to comment.