From b6d5d33168f4a7dee853d4a50dd2c84683599ca8 Mon Sep 17 00:00:00 2001 From: wangrong Date: Fri, 28 Nov 2025 13:59:22 +0800 Subject: [PATCH] chore: Update compiler flags for security enhancements As title Log: Update compiler flags for security enhancements Bug: https://pms.uniontech.com/bug-view-339563.html --- LICENSES/MIT.txt | 18 ++++++++++++++++++ debian/rules | 2 ++ 2 files changed, 20 insertions(+) create mode 100644 LICENSES/MIT.txt diff --git a/LICENSES/MIT.txt b/LICENSES/MIT.txt new file mode 100644 index 0000000..d817195 --- /dev/null +++ b/LICENSES/MIT.txt @@ -0,0 +1,18 @@ +MIT License + +Copyright (c) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and +associated documentation files (the "Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the +following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial +portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO +EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/debian/rules b/debian/rules index 4c32488..eb9e47e 100755 --- a/debian/rules +++ b/debian/rules @@ -1,6 +1,8 @@ #!/usr/bin/make -f include /usr/share/dpkg/default.mk +export DEB_LDFLAGS_APPEND = -Wl,-z,now + # 有的Qt5环境需要设置环境变量,Qt6不需要 export QT_SELECT=5