configure:error:无法识别的选项:-static-libgcc

时间:2016-04-27 09:12:56

标签: c mingw static-linking configure zbar

我正在尝试编译zbar-0.10以静态链接到MinGW依赖项,因此它不需要libgcc_s_dw2-1.dlllibwinpthread-1.dlllibstdc++-6.dll

根据MinGW .exe requires a few gcc dll's regardless of the code?接受的回答,我尝试将-static -static-libgcc -static-libstdc++添加到我的./configure脚本参数中:

./configure -static-libgcc -static-libstdc++ -static -lpthread --without-qt --without-gtk --without-python --without-imagemagick

但我收到了这个错误:

configure: error: unrecognized option: -static-libgcc

传递给configure脚本的正确参数是什么,因此MinGW依赖项与ZBar静态链接?

1 个答案:

答案 0 :(得分:0)

当您使用MinGW工具链时,选项-static足以满足您的需求。

相关问题