yeshanshan
|
290b84eb53
|
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. 这些改动在保持构建效率的同时提高了二进制安全性
|
2025-07-03 21:03:48 +08:00 |