Skip to content

Commit

Permalink
Merge pull request #35 from wolfmcnally/master
Browse files Browse the repository at this point in the history
Add compiler hardening flags.
  • Loading branch information
wolfmcnally committed Aug 16, 2021
2 parents 5b2f74e + e296065 commit 6307acb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ RED=`tput setaf 1`
GREEN=`tput setaf 2`
RESET=`tput sgr0`

CFLAGS += -g -O0
CPPFLAGS += -D_FORTIFY_SOURCE=2
CFLAGS += -O2 -fstack-protector-all
ARFLAGS = rcs

UNAME := $(shell uname)
Expand Down
3 changes: 2 additions & 1 deletion test/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ RED=`tput setaf 1`
GREEN=`tput setaf 2`
RESET=`tput sgr0`

CFLAGS += -g -O0
CPPFLAGS += -D_FORTIFY_SOURCE=2
CFLAGS += -g -O2 -fstack-protector-all

UNAME := $(shell uname)
ifeq ($(findstring MINGW64, $(UNAME)), MINGW64)
Expand Down

0 comments on commit 6307acb

Please sign in to comment.