3 builddir=__build_mingw_slibtool
8 # slibtool fails to build final EXEs because of symbol collisions:
9 # libre2c is statically linked with libgcc, and slibtool passes -lre2c
10 # before some object file that also contains definitions from libgcc
12 # however, slibtool manages to correctly build self-contained libre2c.dll
13 # (unlike libtool, which ignores '-static-libstdc++ -static-libgcc' and
14 # produces non-portable DLL)
15 ../configure LDFLAGS="-static-libstdc++ -static-libgcc" \
18 --host i686-w64-mingw32 \
19 && make -j$(nproc) LIBTOOL="slibtool"