I'm trying to compile zbar-0.10 to be statically linked to the MinGW dependencies, so it doesn't require libgcc_s_dw2-1.dll
, libwinpthread-1.dll
, and libstdc++-6.dll
.
Following the accepted answer from MinGW .exe requires a few gcc dll's regardless of the code?, I tried adding -static -static-libgcc -static-libstdc++
to my ./configure
script parameters:
./configure -static-libgcc -static-libstdc++ -static -lpthread --without-qt --without-gtk --without-python --without-imagemagick
But I got this error:
configure: error: unrecognized option: -static-libgcc
What are the correct parameters to pass to the configure script so the MinGW dependencies are statically linked to ZBar?