解决编译后在中标麒麟上无法运行的问题

This commit is contained in:
modehua 2023-08-22 12:00:39 +08:00
parent 3a6e2d69d4
commit 7cdbfa9bd2
4 changed files with 4 additions and 12 deletions

View File

@ -87,6 +87,7 @@ win32 {
unix {
DEFINES += _GLIBCXX_USE_CXX11_ABI=0
DISTRIBUTION = $$system(cat /etc/issue | cut -d\' \' -f1)
contains(DISTRIBUTION, UnionTech) {
MY_OS = uos
@ -98,12 +99,10 @@ unix {
contains(QT_ARCH, x86_64) {
MY_ARCH = amd64
MY_ARCH2 = x86_64
QMAKE_LFLAGS += -static-libstdc++ -static-libgcc
}
contains(QT_ARCH, arm64) {
MY_ARCH = aarch64
MY_ARCH2 = aarch64
QMAKE_LFLAGS += -static-libstdc++ -static-libgcc
}
contains(QT_ARCH, mips64) {
MY_ARCH = mips64
@ -112,7 +111,6 @@ unix {
contains(QT_ARCH, loongarch64) {
MY_ARCH = loongarch64
MY_ARCH2 = loongarch64
QMAKE_LFLAGS += -static-libstdc++ -static-libgcc
}
CONFIG += unversioned_libname unversioned_soname

View File

@ -94,6 +94,7 @@ win32 {
unix {
DEFINES += _GLIBCXX_USE_CXX11_ABI=0
DISTRIBUTION = $$system(cat /etc/issue | cut -d\' \' -f1)
contains(DISTRIBUTION, UnionTech) {
MY_OS = uos
@ -105,13 +106,11 @@ unix {
DEFINES += x86_64
MY_ARCH = amd64
MY_ARCH2 = x86_64
QMAKE_LFLAGS += -static-libstdc++ -static-libgcc
}
contains(QT_ARCH, arm64) {
DEFINES += aarch64
MY_ARCH = aarch64
MY_ARCH2 = aarch64
QMAKE_LFLAGS += -static-libstdc++ -static-libgcc
}
contains(QT_ARCH, mips64) {
DEFINES += mips64
@ -122,7 +121,6 @@ unix {
DEFINES += loongarch64
MY_ARCH = loongarch64
MY_ARCH2 = loongarch64
QMAKE_LFLAGS += -static-libstdc++ -static-libgcc
}
CONFIG += unversioned_libname unversioned_soname

View File

@ -62,6 +62,7 @@ win32 {
unix {
DEFINES += _GLIBCXX_USE_CXX11_ABI=0
DISTRIBUTION = $$system(cat /etc/issue | cut -d\' \' -f1)
contains(DISTRIBUTION, UnionTech) {
MY_OS = uos
@ -73,12 +74,10 @@ unix {
contains(QT_ARCH, x86_64) {
MY_ARCH = amd64
MY_ARCH2 = x86_64
QMAKE_LFLAGS += -static-libstdc++ -static-libgcc
}
contains(QT_ARCH, arm64) {
MY_ARCH = aarch64
MY_ARCH2 = aarch64
QMAKE_LFLAGS += -static-libstdc++ -static-libgcc
}
contains(QT_ARCH, mips64) {
MY_ARCH = mips64
@ -87,7 +86,6 @@ unix {
contains(QT_ARCH, loongarch64) {
MY_ARCH = loongarch64
MY_ARCH2 = loongarch64
QMAKE_LFLAGS += -static-libstdc++ -static-libgcc
}
CONFIG += unversioned_libname unversioned_soname

View File

@ -82,6 +82,7 @@ win32 {
unix {
DEFINES += _GLIBCXX_USE_CXX11_ABI=0
DISTRIBUTION = $$system(cat /etc/issue | cut -d\' \' -f1)
contains(DISTRIBUTION, UnionTech) {
MY_OS = uos
@ -93,12 +94,10 @@ unix {
contains(QT_ARCH, x86_64) {
MY_ARCH = amd64
MY_ARCH2 = x86_64
QMAKE_LFLAGS += -static-libstdc++ -static-libgcc
}
contains(QT_ARCH, arm64) {
MY_ARCH = aarch64
MY_ARCH2 = aarch64
QMAKE_LFLAGS += -static-libstdc++ -static-libgcc
}
contains(QT_ARCH, mips64) {
MY_ARCH = mips64
@ -107,7 +106,6 @@ unix {
contains(QT_ARCH, loongarch64) {
MY_ARCH = loongarch64
MY_ARCH2 = loongarch64
QMAKE_LFLAGS += -static-libstdc++ -static-libgcc
}
CONFIG += unversioned_libname unversioned_soname