]> granicus.if.org Git - re2c/blob - __build_mingw_slibtool.sh
Added include/ subdirectory to distribution and updated bootsrap files.
[re2c] / __build_mingw_slibtool.sh
1 #!/bin/sh
2
3 builddir=__build_mingw_slibtool
4 rm -rf $builddir
5 mkdir $builddir
6
7 cd $builddir
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
11 #
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" \
16     --enable-debug \
17     --enable-libs \
18     --host i686-w64-mingw32 \
19     && make -j$(nproc) LIBTOOL="slibtool"
20 cd ..