Skip to content

Commit c6f19b0

Browse files
committed
Merge pull request #501 from dscho/stack-protector
Build Git with Stack Smashing Protector enabled
2 parents 3ab8431 + 6fc6a9d commit c6f19b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

config.mak.uname

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,8 @@ else
555555
BASIC_LDFLAGS += -Wl,--large-address-aware
556556
endif
557557
CC = gcc
558-
COMPAT_CFLAGS += -D__USE_MINGW_ANSI_STDIO=0 -DDETECT_MSYS_TTY
558+
COMPAT_CFLAGS += -D__USE_MINGW_ANSI_STDIO=0 -DDETECT_MSYS_TTY \
559+
-fstack-protector-strong
559560
EXTLIBS += -lntdll
560561
INSTALL = /bin/install
561562
NO_R_TO_GCC_LINKER = YesPlease

0 commit comments

Comments
 (0)