解决编译后在中标麒麟上无法运行的问题
This commit is contained in:
parent
3a6e2d69d4
commit
7cdbfa9bd2
|
@ -87,6 +87,7 @@ win32 {
|
||||||
|
|
||||||
unix {
|
unix {
|
||||||
|
|
||||||
|
DEFINES += _GLIBCXX_USE_CXX11_ABI=0
|
||||||
DISTRIBUTION = $$system(cat /etc/issue | cut -d\' \' -f1)
|
DISTRIBUTION = $$system(cat /etc/issue | cut -d\' \' -f1)
|
||||||
contains(DISTRIBUTION, UnionTech) {
|
contains(DISTRIBUTION, UnionTech) {
|
||||||
MY_OS = uos
|
MY_OS = uos
|
||||||
|
@ -98,12 +99,10 @@ unix {
|
||||||
contains(QT_ARCH, x86_64) {
|
contains(QT_ARCH, x86_64) {
|
||||||
MY_ARCH = amd64
|
MY_ARCH = amd64
|
||||||
MY_ARCH2 = x86_64
|
MY_ARCH2 = x86_64
|
||||||
QMAKE_LFLAGS += -static-libstdc++ -static-libgcc
|
|
||||||
}
|
}
|
||||||
contains(QT_ARCH, arm64) {
|
contains(QT_ARCH, arm64) {
|
||||||
MY_ARCH = aarch64
|
MY_ARCH = aarch64
|
||||||
MY_ARCH2 = aarch64
|
MY_ARCH2 = aarch64
|
||||||
QMAKE_LFLAGS += -static-libstdc++ -static-libgcc
|
|
||||||
}
|
}
|
||||||
contains(QT_ARCH, mips64) {
|
contains(QT_ARCH, mips64) {
|
||||||
MY_ARCH = mips64
|
MY_ARCH = mips64
|
||||||
|
@ -112,7 +111,6 @@ unix {
|
||||||
contains(QT_ARCH, loongarch64) {
|
contains(QT_ARCH, loongarch64) {
|
||||||
MY_ARCH = loongarch64
|
MY_ARCH = loongarch64
|
||||||
MY_ARCH2 = loongarch64
|
MY_ARCH2 = loongarch64
|
||||||
QMAKE_LFLAGS += -static-libstdc++ -static-libgcc
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CONFIG += unversioned_libname unversioned_soname
|
CONFIG += unversioned_libname unversioned_soname
|
||||||
|
|
|
@ -94,6 +94,7 @@ win32 {
|
||||||
|
|
||||||
unix {
|
unix {
|
||||||
|
|
||||||
|
DEFINES += _GLIBCXX_USE_CXX11_ABI=0
|
||||||
DISTRIBUTION = $$system(cat /etc/issue | cut -d\' \' -f1)
|
DISTRIBUTION = $$system(cat /etc/issue | cut -d\' \' -f1)
|
||||||
contains(DISTRIBUTION, UnionTech) {
|
contains(DISTRIBUTION, UnionTech) {
|
||||||
MY_OS = uos
|
MY_OS = uos
|
||||||
|
@ -105,13 +106,11 @@ unix {
|
||||||
DEFINES += x86_64
|
DEFINES += x86_64
|
||||||
MY_ARCH = amd64
|
MY_ARCH = amd64
|
||||||
MY_ARCH2 = x86_64
|
MY_ARCH2 = x86_64
|
||||||
QMAKE_LFLAGS += -static-libstdc++ -static-libgcc
|
|
||||||
}
|
}
|
||||||
contains(QT_ARCH, arm64) {
|
contains(QT_ARCH, arm64) {
|
||||||
DEFINES += aarch64
|
DEFINES += aarch64
|
||||||
MY_ARCH = aarch64
|
MY_ARCH = aarch64
|
||||||
MY_ARCH2 = aarch64
|
MY_ARCH2 = aarch64
|
||||||
QMAKE_LFLAGS += -static-libstdc++ -static-libgcc
|
|
||||||
}
|
}
|
||||||
contains(QT_ARCH, mips64) {
|
contains(QT_ARCH, mips64) {
|
||||||
DEFINES += mips64
|
DEFINES += mips64
|
||||||
|
@ -122,7 +121,6 @@ unix {
|
||||||
DEFINES += loongarch64
|
DEFINES += loongarch64
|
||||||
MY_ARCH = loongarch64
|
MY_ARCH = loongarch64
|
||||||
MY_ARCH2 = loongarch64
|
MY_ARCH2 = loongarch64
|
||||||
QMAKE_LFLAGS += -static-libstdc++ -static-libgcc
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CONFIG += unversioned_libname unversioned_soname
|
CONFIG += unversioned_libname unversioned_soname
|
||||||
|
|
|
@ -62,6 +62,7 @@ win32 {
|
||||||
|
|
||||||
unix {
|
unix {
|
||||||
|
|
||||||
|
DEFINES += _GLIBCXX_USE_CXX11_ABI=0
|
||||||
DISTRIBUTION = $$system(cat /etc/issue | cut -d\' \' -f1)
|
DISTRIBUTION = $$system(cat /etc/issue | cut -d\' \' -f1)
|
||||||
contains(DISTRIBUTION, UnionTech) {
|
contains(DISTRIBUTION, UnionTech) {
|
||||||
MY_OS = uos
|
MY_OS = uos
|
||||||
|
@ -73,12 +74,10 @@ unix {
|
||||||
contains(QT_ARCH, x86_64) {
|
contains(QT_ARCH, x86_64) {
|
||||||
MY_ARCH = amd64
|
MY_ARCH = amd64
|
||||||
MY_ARCH2 = x86_64
|
MY_ARCH2 = x86_64
|
||||||
QMAKE_LFLAGS += -static-libstdc++ -static-libgcc
|
|
||||||
}
|
}
|
||||||
contains(QT_ARCH, arm64) {
|
contains(QT_ARCH, arm64) {
|
||||||
MY_ARCH = aarch64
|
MY_ARCH = aarch64
|
||||||
MY_ARCH2 = aarch64
|
MY_ARCH2 = aarch64
|
||||||
QMAKE_LFLAGS += -static-libstdc++ -static-libgcc
|
|
||||||
}
|
}
|
||||||
contains(QT_ARCH, mips64) {
|
contains(QT_ARCH, mips64) {
|
||||||
MY_ARCH = mips64
|
MY_ARCH = mips64
|
||||||
|
@ -87,7 +86,6 @@ unix {
|
||||||
contains(QT_ARCH, loongarch64) {
|
contains(QT_ARCH, loongarch64) {
|
||||||
MY_ARCH = loongarch64
|
MY_ARCH = loongarch64
|
||||||
MY_ARCH2 = loongarch64
|
MY_ARCH2 = loongarch64
|
||||||
QMAKE_LFLAGS += -static-libstdc++ -static-libgcc
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CONFIG += unversioned_libname unversioned_soname
|
CONFIG += unversioned_libname unversioned_soname
|
||||||
|
|
|
@ -82,6 +82,7 @@ win32 {
|
||||||
|
|
||||||
unix {
|
unix {
|
||||||
|
|
||||||
|
DEFINES += _GLIBCXX_USE_CXX11_ABI=0
|
||||||
DISTRIBUTION = $$system(cat /etc/issue | cut -d\' \' -f1)
|
DISTRIBUTION = $$system(cat /etc/issue | cut -d\' \' -f1)
|
||||||
contains(DISTRIBUTION, UnionTech) {
|
contains(DISTRIBUTION, UnionTech) {
|
||||||
MY_OS = uos
|
MY_OS = uos
|
||||||
|
@ -93,12 +94,10 @@ unix {
|
||||||
contains(QT_ARCH, x86_64) {
|
contains(QT_ARCH, x86_64) {
|
||||||
MY_ARCH = amd64
|
MY_ARCH = amd64
|
||||||
MY_ARCH2 = x86_64
|
MY_ARCH2 = x86_64
|
||||||
QMAKE_LFLAGS += -static-libstdc++ -static-libgcc
|
|
||||||
}
|
}
|
||||||
contains(QT_ARCH, arm64) {
|
contains(QT_ARCH, arm64) {
|
||||||
MY_ARCH = aarch64
|
MY_ARCH = aarch64
|
||||||
MY_ARCH2 = aarch64
|
MY_ARCH2 = aarch64
|
||||||
QMAKE_LFLAGS += -static-libstdc++ -static-libgcc
|
|
||||||
}
|
}
|
||||||
contains(QT_ARCH, mips64) {
|
contains(QT_ARCH, mips64) {
|
||||||
MY_ARCH = mips64
|
MY_ARCH = mips64
|
||||||
|
@ -107,7 +106,6 @@ unix {
|
||||||
contains(QT_ARCH, loongarch64) {
|
contains(QT_ARCH, loongarch64) {
|
||||||
MY_ARCH = loongarch64
|
MY_ARCH = loongarch64
|
||||||
MY_ARCH2 = loongarch64
|
MY_ARCH2 = loongarch64
|
||||||
QMAKE_LFLAGS += -static-libstdc++ -static-libgcc
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CONFIG += unversioned_libname unversioned_soname
|
CONFIG += unversioned_libname unversioned_soname
|
||||||
|
|
Loading…
Reference in New Issue