diff options
author | Jim Klimov <jimklimov@gmail.com> | 2022-08-08 17:35:44 +0200 |
---|---|---|
committer | Joe Orton <jorton@apache.org> | 2022-10-05 09:40:40 +0100 |
commit | a9008f0a4db0b806aefe451e32cbca863d573370 (patch) | |
tree | 012e518512c789dd077a40d6e29813f7fbbb19af | |
parent | 575ca2789ffd6daa293f8939f69214f12feb9ab7 (diff) | |
download | neon-git-a9008f0a4db0b806aefe451e32cbca863d573370.tar.gz |
macros/neon.m4: require use of "$NEON_LIBS -lws2_32" for Windows builds with MSYS2/MINGW to facilitate shared DLL linking
-rw-r--r-- | macros/neon.m4 | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/macros/neon.m4 b/macros/neon.m4 index c77dc14..5e55755 100644 --- a/macros/neon.m4 +++ b/macros/neon.m4 @@ -471,14 +471,18 @@ AC_CACHE_CHECK([for uname], ne_cv_os_uname, [ esac ]) -if test "$ne_cv_os_uname" = "Darwin"; then +AS_CASE([x"$ne_cv_os_uname"], +[x"Darwin"], [ CPPFLAGS="$CPPFLAGS -no-cpp-precomp" LDFLAGS="$LDFLAGS -flat_namespace" # poll has various issues in various Darwin releases if test x${ac_cv_func_poll+set} != xset; then ac_cv_func_poll=no fi -fi +], +[xMINGW*|xMSYS*], + [NEON_LIBS="$NEON_LIBS -lws2_32"] +)dnl AS_CASE ]) AC_DEFUN([NEON_COMMON_CHECKS], [ |