mirror of
https://github.com/fumiama/base16384.git
synced 2026-06-11 23:00:24 +08:00
优化 hardening
This commit is contained in:
@@ -22,7 +22,7 @@ if (MSVC)
|
|||||||
# do nothing
|
# do nothing
|
||||||
else()
|
else()
|
||||||
# add hardening
|
# add hardening
|
||||||
target_compile_options(base16384 INTERFACE -Wl,-z,relro,-z,now -Wdate-time)
|
target_compile_options(base16384 PUBLIC -Wl,-z,now -Wdate-time)
|
||||||
add_definitions(-D_FORTIFY_SOURCE=2)
|
add_definitions(-D_FORTIFY_SOURCE=2)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user