Commit acf8ce9
committed
fix: update build hardening flags and cmake configuration
1. Removed redundant compiler flags from CMakeLists.txt that are now
handled by debian/rules
2. Added security hardening build options in debian/rules including:
- Enabling all hardening features
- Adding -Wall warning flags for C/C++
- Setting secure linker flags (RELRO, NOW, noexecstack)
3. Cleaned up CMake configuration by removing duplicate flags that are
now handled at Debian build level
fix: 更新构建加固标志和cmake配置
1. 从CMakeLists.txt中移除了现在由debian/rules处理的冗余编译器标志
2. 在debian/rules中添加了安全加固构建选项包括:
- 启用所有加固功能
- 为C/C++添加-Wall警告标志
- 设置安全链接器标志(RELRO, NOW, noexecstack)
3. 通过移除现在由Debian构建层处理的重复标志来清理CMake配置1 parent daebebf commit acf8ce9
2 files changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
5 | 10 | | |
6 | 11 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
0 commit comments