过程会很久……很久……
首先修改位于
即将QMAKE_LFLAGS = -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc
修改为QMAKE_LFLAGS = -static -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc
接着切换到
configure -static -release -no-exceptions
mingw32-make sub-src
最后,在具体静态编译的时候在.pro中添加:
CONFIG += static
或者
最新评论