Skip to content

Commit f7ce889

Browse files
committed
cmake: only use _FORTIFY_SOURCE with hardening
1 parent 79598bf commit f7ce889

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/DaemonFlags.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ else()
315315
endif()
316316

317317
# Hardening.
318-
if (USE_HARDENING OR NOT MINGW)
318+
if (USE_HARDENING)
319319
# MinGW with _FORTIFY_SOURCE and without -fstack-protector
320320
# causes unsatisfied dependency on libssp.
321321
# https://github.com/msys2/MINGW-packages/issues/5868

0 commit comments

Comments
 (0)