Skip to content

Commit ade5dc1

Browse files
committed
[build] can't use tzdb on mingw
1 parent 36e2811 commit ade5dc1

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/bins.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,7 @@ jobs:
247247
./configure \
248248
--prefix=/mingw64 \
249249
--enable-static \
250-
--disable-shared \
251-
--with-sqlite3 \
252-
--with-editline
250+
--with-sqlite3
253251
254252
- name: Build
255253
run: make V=1

configure.ac

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ AC_SUBST(abssrcdir)
3333
CXX=`echo $CXX | sed -e 's/-std=gnu++11//g'`
3434
CPPFLAGS="$CPPFLAGS -D_ISOC99_SOURCE -D__STDC_LIMIT_MACROS -D_GNU_SOURCE -DUSE_OS_TZDB=1 -DHAS_REMOTE_API=0"
3535

36+
case "$host_os" in
37+
*)
38+
AC_DEFINE([USE_OS_TZDB], [1], [use tzdb])
39+
;;
40+
mingw*)
41+
;;
42+
esac
43+
3644
AC_ARG_ENABLE([debug],
3745
AS_HELP_STRING([--enable-debug],
3846
[Compile with symbols]))

0 commit comments

Comments
 (0)