2016-04-27 145 views
1

我試圖編譯zbar-0.10以靜態鏈接到MinGW依賴項,所以它不需要libgcc_s_dw2-1.dll,libwinpthread-1.dlllibstdc++-6.dll配置:錯誤:無法識別的選項:-static-libgcc

繼從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

什麼是正確的參數傳遞給配置腳本,以便MinGW依賴關係靜態鏈接到ZBar?

+0

也許你的MinGW版本不支持它?你在使用libtool嗎?如果是的話,[這個人](http://www.mingw.org/wiki/HOWTO_Sneak_GCC_Switches_Past_Libtool)應該有所幫助。 – LPs

回答

0

選項-static對於您在使用MinGW工具鏈時想達到的效果已經足夠了。

相關問題