1
我試圖編譯zbar-0.10以靜態鏈接到MinGW依賴項,所以它不需要libgcc_s_dw2-1.dll
,libwinpthread-1.dll
和libstdc++-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?
也許你的MinGW版本不支持它?你在使用libtool嗎?如果是的話,[這個人](http://www.mingw.org/wiki/HOWTO_Sneak_GCC_Switches_Past_Libtool)應該有所幫助。 – LPs