libmicrohttpd: fix clang compilation

Backported upstream commits fixing compilation with llvm-dlltool.

Added the other clang targets as they work now.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2021-12-12 15:21:09 -08:00
parent 48c8319e78
commit 772c84c7bc

View File

@@ -7,10 +7,10 @@ _realname=libmicrohttpd
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=0.9.72
pkgrel=3
pkgrel=4
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')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64')
url="https://www.gnu.org/software/libmicrohttpd"
license=("LGPL")
makedepends=("${MINGW_PACKAGE_PREFIX}-gcc"
@@ -18,14 +18,23 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-gcc"
"${MINGW_PACKAGE_PREFIX}-pkg-config")
checkdepends=("${MINGW_PACKAGE_PREFIX}-curl")
depends=("${MINGW_PACKAGE_PREFIX}-gnutls")
source=("https://ftp.gnu.org/gnu/libmicrohttpd/${_realname}-${pkgver}.tar.gz"{,.sig})
source=("https://ftp.gnu.org/gnu/libmicrohttpd/${_realname}-${pkgver}.tar.gz"{,.sig}
"010-as.patch::https://git.gnunet.org/libmicrohttpd.git/patch/?id=21be8eccb987b6d5fe05d3827ff97c23b8e630cc"
"020-fix-exp.patch::https://git.gnunet.org/libmicrohttpd.git/patch/?id=de383203d4d7921bf331510bc898ab88c5844731"
"030-correction.patch::https://git.gnunet.org/libmicrohttpd.git/patch/?id=2cd73a76cb18d2760d3802709b56e7598a5e651f")
validpgpkeys=('D8423BCB326C7907033929C7939E6BE1E29FC3CC' # Christian Grothoff <christian@grothoff.org>
'EA812DBEFA5A7EF17DA8F2C1460A317C3326D2AE') # Karlson2k (Evgeny Grin) <k2k@narod.ru>
sha256sums=('0ae825f8e0d7f41201fd44a0df1cf454c1cb0bc50fe9d59c26552260264c2ff8'
'SKIP')
'SKIP'
'ed07c0ca89c44523f1efa9fe21b02e0b0cf2851f6ec151eee4e33eb67cc12b41'
'247addd1fda8a275eb5c68b4d0ee19aae6351636735af8babb091fd4a62945d3'
'a5239dfb89b1e441c13fd0571911771cd40f1b88e8a1ef869eadaeb58ea56fe1')
prepare() {
cd ${_realname}-${pkgver}
patch -p1 -i ${srcdir}/010-as.patch
patch -p1 -i ${srcdir}/020-fix-exp.patch
patch -p1 -i ${srcdir}/030-correction.patch
# autoreconf to get updated libtool files with clang support
autoreconf -fiv
}