]> granicus.if.org Git - re2c/commit
Adjusted build system to correctly build DLLs for windows.
authorUlya Trofimovich <skvadrik@gmail.com>
Sun, 27 Jan 2019 10:06:22 +0000 (10:06 +0000)
committerUlya Trofimovich <skvadrik@gmail.com>
Sun, 27 Jan 2019 10:06:22 +0000 (10:06 +0000)
commitb98e70f6a845d3a0e5520ea6e59600b2f70714d4
tree888d77c73a38ee96f46dd7485f5b3597e5cf9d08
parente686df81492aa7fbfb4ac5d556ac9255f36f1c74
Adjusted build system to correctly build DLLs for windows.

Adjustments:
    - configure.ac:  pass win32-dll option to LT_INIT

    - Makefile_libre2c_posix.am: use -no-undefined in LDFLAGS

    - use slibtool: https://github.com/midipix-project/slibtool for windows
      builds The problem with libtool is that it doesn't allow to link libstdc++
      and libgcc statically, which is necessary to build portable DLLs with
      Mingw. Libtool adds -nostdlib option to LDFLAGS and links some predefined
      objects that pull in dependency on dynamic libstdc++ and libgcc, even in
      the presence of -static-libstdc++ -static-libgcc.
re2c/Makefile.libre2c_posix.am
re2c/__build_mingw.sh
re2c/configure.ac