From 4f1629d175e7c98b0cd9fa1be217d226a3b6fb22 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Wed, 11 Sep 2024 12:58:29 +0900 Subject: [PATCH] Update CMakeLists.txt --- CMakeLists.txt | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0183e67..f4b7de8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,7 +44,8 @@ $,-Og,-fno-delete-null-pointer-checks -fno-strict-overflow -f -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong --fPIC +-fPIE -pie +-Werror=implicit -Werror=incompatible-pointer-types -Werror=int-conversion ) target_link_options(c_simple_http PUBLIC @@ -56,7 +57,8 @@ $,-Og,-fno-delete-null-pointer-checks -fno-strict-overflow -f -fstack-clash-protection -fstack-protector-strong -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now --fPIC +-fPIE -pie +-Werror=implicit -Werror=incompatible-pointer-types -Werror=int-conversion ) target_compile_options(unit_tests PUBLIC @@ -66,7 +68,8 @@ $,-Og,-fno-delete-null-pointer-checks -fno-strict-overflow -f -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-clash-protection -fstack-protector-strong --fPIC +-fPIE -pie +-Werror=implicit -Werror=incompatible-pointer-types -Werror=int-conversion ) target_link_options(unit_tests PUBLIC @@ -78,5 +81,6 @@ $,-Og,-fno-delete-null-pointer-checks -fno-strict-overflow -f -fstack-clash-protection -fstack-protector-strong -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now --fPIC +-fPIE -pie +-Werror=implicit -Werror=incompatible-pointer-types -Werror=int-conversion )