Windows build fixes

This commit is contained in:
Evan Miller 2020-08-04 17:52:22 -04:00
parent 2be700826a
commit 4e9bee2dc8
2 changed files with 5 additions and 3 deletions

View File

@ -22,14 +22,14 @@ build_script:
if ($env:TOOLCHAIN -eq "msys2") if ($env:TOOLCHAIN -eq "msys2")
{ {
$env:MSYSTEM="MINGW64" $env:MSYSTEM="MINGW64"
C:\msys64\usr\bin\bash -l -c "pacman -S --noconfirm autoconf-archive mingw-w64-x86_64-glib2" C:\msys64\usr\bin\bash -l -c "pacman -S --noconfirm mingw-w64-x86_64-glib2"
C:\msys64\usr\bin\bash -l -c "cd /c/projects/mdbtools && autoreconf -i -f" C:\msys64\usr\bin\bash -l -c "cd /c/projects/mdbtools && autoreconf -i -f"
C:\msys64\usr\bin\bash -l -c "cd /c/projects/mdbtools && ./configure --disable-man --disable-silent-rules" C:\msys64\usr\bin\bash -l -c "cd /c/projects/mdbtools && ./configure --disable-man --disable-silent-rules"
C:\msys64\usr\bin\bash -l -c "cd /c/projects/mdbtools && make" C:\msys64\usr\bin\bash -l -c "cd /c/projects/mdbtools && make"
} }
else else
{ {
C:\cygwin64\setup-x86_64.exe -qP autoconf-archive libglib2.0-devel C:\cygwin64\setup-x86_64.exe -qP libglib2.0-devel
C:\cygwin64\bin\sh -lc "cd /cygdrive/c/projects/mdbtools && autoreconf -i -f" C:\cygwin64\bin\sh -lc "cd /cygdrive/c/projects/mdbtools && autoreconf -i -f"
C:\cygwin64\bin\sh -lc "cd /cygdrive/c/projects/mdbtools && ./configure --disable-man --disable-silent-rules" C:\cygwin64\bin\sh -lc "cd /cygdrive/c/projects/mdbtools && ./configure --disable-man --disable-silent-rules"
C:\cygwin64\bin\sh -lc "cd /cygdrive/c/projects/mdbtools && make" C:\cygwin64\bin\sh -lc "cd /cygdrive/c/projects/mdbtools && make"

View File

@ -12,7 +12,7 @@ AC_PROG_CC(gcc)
dnl Checks for programs. dnl Checks for programs.
AC_PROG_MAKE_SET AC_PROG_MAKE_SET
m4_pattern_allow([AM_PROG_AR], [AM_PROG_AR]) m4_pattern_allow([AM_PROG_AR], [AM_PROG_AR])
LT_INIT LT_INIT([win32-dll])
AC_PROG_LEX AC_PROG_LEX
AC_PROG_YACC AC_PROG_YACC
@ -62,6 +62,8 @@ AC_SUBST(SQL)
AC_SUBST(LFLAGS) AC_SUBST(LFLAGS)
CFLAGS="$CFLAGS -Wall -Wstrict-prototypes" CFLAGS="$CFLAGS -Wall -Wstrict-prototypes"
AS_CASE([$host],
[*mingw*|*cygwin*], [LDFLAGS="$LDFLAGS -no-undefined"], [])
dnl Enable -Wl,--as-needed by default to prevent overlinking dnl Enable -Wl,--as-needed by default to prevent overlinking
AC_ARG_ENABLE([as-needed], AC_ARG_ENABLE([as-needed],