我尝试使用静态链接工具链库构建程序.我通过:
LDFLAGS="-Wl,-Bstatic -lwinpthread -Wl,-Bdynamic -static-libgcc -static-libstdc++"
Run Code Online (Sandbox Code Playgroud)
但程序与共享相关联libwinpthread-1.dll.
我做错了什么?
我得到静态链接libwinpthreads的唯一方法是传递-static给LDFLAGS.但它打破了插件系统的构建程序.
我使用MinGW-builds项目中的mingw-w64 + GCC-4.7.2:http://sourceforge.net/projects/mingwbuilds/