From 626a570fba71972d36beea9ccc5c2e6a40ab1d09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Sun, 16 Oct 2022 13:55:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20hardening?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2b8d788..39ae6a5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,7 +22,7 @@ if (MSVC) # do nothing else() # 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) endif()