File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -315,17 +315,15 @@ else()
315
315
endif ()
316
316
317
317
# Hardening.
318
- if (USE_HARDENING OR NOT MINGW )
318
+ if (USE_HARDENING )
319
319
# MinGW with _FORTIFY_SOURCE and without -fstack-protector
320
320
# causes unsatisfied dependency on libssp.
321
321
# https://github.com/msys2/MINGW-packages/issues/5868
322
322
set_c_cxx_flag ("-D_FORTIFY_SOURCE=2" RELEASE )
323
323
set_c_cxx_flag ("-D_FORTIFY_SOURCE=2" RELWITHDEBINFO )
324
324
set_c_cxx_flag ("-D_FORTIFY_SOURCE=2" MINSIZEREL )
325
325
# Don't set _FORTIFY_SOURCE in debug builds.
326
- endif ()
327
326
328
- if (USE_HARDENING )
329
327
# PNaCl accepts the flags but does not define __stack_chk_guard and __stack_chk_fail.
330
328
if (NOT NACL )
331
329
try_c_cxx_flag (FSTACK_PROTECTOR_STRONG "-fstack-protector-strong" )
You can’t perform that action at this time.
0 commit comments