Skip to content

Commit b00314a

Browse files
mdcornupablodelara
authored andcommitted
extend security options for windows build
Signed-off-by: Marcel Cornu <[email protected]>
1 parent 3aa2266 commit b00314a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile.nmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ objs = \
267267
INCLUDES = -I./ -Isha1_mb/ -Isha256_mb/ -Isha512_mb/ -Imd5_mb/ -Imh_sha1/ -Imh_sha1_murmur3_x64_128/ -Imh_sha256/ -Irolling_hash/ -Ism3_mb/ -Iaes/ -Iinclude/ -Iintel-ipsec-mb/lib
268268
# Modern asm feature level, consider upgrading nasm before decreasing feature_level
269269
FEAT_FLAGS = -DAS_FEATURE_LEVEL=10
270-
CFLAGS_REL = -O2 -DNDEBUG /Z7 /Gy
270+
CFLAGS_REL = -O2 -DNDEBUG /Z7 /Gy /ZH:SHA_256 /guard:cf
271271
CFLAGS_DBG = -Od -DDEBUG /Z7
272272

273273
!if "$(CONFIG)" == "DEBUG"
@@ -276,7 +276,7 @@ CFLAGS=$(CFLAGS_DBG)
276276
CFLAGS=$(CFLAGS_REL)
277277
!endif
278278

279-
LINKFLAGS = -nologo -incremental:no -debug
279+
LINKFLAGS = -nologo -incremental:no -debug -guard:cf -DYNAMICBASE
280280
CFLAGS = $(CFLAGS) -nologo -D_USE_MATH_DEFINES -DNO_COMPAT_ISAL_CRYPTO_API_2_24 $(FEAT_FLAGS) $(INCLUDES) $(D) /W3
281281
AFLAGS = -f win64 $(FEAT_FLAGS) $(INCLUDES) $(D)
282282
CC = cl

0 commit comments

Comments
 (0)