From: Stephen Seo Date: Wed, 11 Sep 2024 03:58:29 +0000 (+0900) Subject: Update CMakeLists.txt X-Git-Tag: 1.0~45 X-Git-Url: https://git.seodisparate.com/tbm-server-edit-hover.png?a=commitdiff_plain;h=4f1629d175e7c98b0cd9fa1be217d226a3b6fb22;p=c_simple_http Update CMakeLists.txt --- 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 )