feat(安全漏洞): 安全加固

Description: 修改编译参数,安全加固

Log: 修复安全测试,漏洞编号:UT-2021-0267
Change-Id: Icea14f2c03195a480c233c287bcb37e70026773e
This commit is contained in:
ut000593 2021-11-26 10:16:22 +08:00
parent d30725ce0d
commit 8ad4fa0fd1

View File

@ -12,6 +12,7 @@ INCLUDEPATH += .
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
QMAKE_LFLAGS += -Wl,--as-needed -pie -z noexecstack -fstack-protector-all -z now
# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.