qt6windows7/mkspecs/features/static_runtime.prf

8 lines
178 B
Plaintext
Raw Normal View History

2023-10-30 06:33:08 +08:00
msvc {
# -MD becomes -MT, -MDd becomes -MTd
QMAKE_CFLAGS ~= s,^-MD(d?)$,-MT\\1,g
QMAKE_CXXFLAGS ~= s,^-MD(d?)$,-MT\\1,g
} else: mingw {
QMAKE_LFLAGS += -static
}