Commit 290b84e
committed
fix: add security hardening flags and optimize build settings
1. Added security hardening compilation flags in debian/rules including:
- Stack protection (-fstack-protector-all)
- Relocation hardening (-Wl,-z,relro/now/noexecstack)
- Warning flags (-Wall)
2. Simplified dtkwidget.cmake by removing redundant linker flags
3. Maintained essential security flags while cleaning up build
configuration
4. These changes improve binary security while keeping build process
efficient
fix: 添加安全加固标志并优化构建设置
1. 在debian/rules中添加安全加固编译标志包括:
- 栈保护 (-fstack-protector-all)
- 重定位加固 (-Wl,-z,relro/now/noexecstack)
- 警告标志 (-Wall)
2. 简化dtkwidget.cmake,移除冗余链接器标志
3. 在保持基本安全标志的同时清理构建配置
4. 这些改动在保持构建效率的同时提高了二进制安全性1 parent f20be8b commit 290b84e
2 files changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
6 | 12 | | |
7 | 13 | | |
8 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
93 | | - | |
| 92 | + | |
94 | 93 | | |
95 | 94 | | |
96 | 95 | | |
| |||
0 commit comments