libmicrohttpd: build for Win7+

This commit is contained in:
Evgeny Grin
2019-06-10 13:13:22 +03:00
parent c0def6412e
commit 976bbdd6b2

View File

@@ -7,7 +7,7 @@ _realname=libmicrohttpd
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=0.9.64
pkgrel=1
pkgrel=2
pkgdesc="GNU libmicrohttpd is a small C library that is supposed to make it easy to run an HTTP server as part of another application (mingw-w64)"
arch=('any')
url="https://www.gnu.org/software/libmicrohttpd"
@@ -38,6 +38,7 @@ build() {
[[ -d ${srcdir}/build-${MINGW_CHOST} ]] && rm -rf ${srcdir}/build-${MINGW_CHOST}
mkdir -p ${srcdir}/build-${MINGW_CHOST} && cd ${srcdir}/build-${MINGW_CHOST}
../${_realname}-${pkgver}/configure \
CPPFLAGS="${CPPFLAGS} -D_WIN32_WINNT=0x0601" \
--prefix=${MINGW_PREFIX} \
--build=${MINGW_CHOST} \
--host=${MINGW_CHOST} \