OSDN Git Service
(root)
/
timidity41
/
timidity41.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03bd03d
)
Enable stack protection
dev41
author
Starg
<starg@users.osdn.me>
Sun, 19 Mar 2023 12:28:55 +0000
(21:28 +0900)
committer
Starg
<starg@users.osdn.me>
Sun, 19 Mar 2023 12:28:55 +0000
(21:28 +0900)
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index
569d79d
..
b775687
100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-272,7
+272,8
@@
if(MSVC)
-DSTDOUT_FILENO=1
)
else()
- add_compile_options(-Wall -Wextra -Wno-missing-braces -ffast-math)
+ add_compile_definitions(_FORTIFY_SOURCE=2)
+ add_compile_options(-Wall -Wextra -Wno-missing-braces -ffast-math -fstack-protector-strong)
if("${TIM41_GCC_WITH_LIBICONV}")
add_compile_options(-finput-charset=cp932 -fexec-charset=cp932)