Fix mingw-w64-gettext

* Fix `'aclocal-1.15' is missing on your system` by running autoreconf
* Fix linker errors by adding `export LDFLAGS="-lssp"`
This commit is contained in:
Martchus 2020-05-20 10:27:33 +02:00
parent f989cb4aba
commit 6dff25f8ff
1 changed files with 3 additions and 1 deletions

View File

@ -3,7 +3,7 @@
pkgname=mingw-w64-gettext
pkgver=0.19.8.1
pkgrel=1
pkgrel=3
arch=('any')
pkgdesc='GNU internationalization library (mingw-w64)'
depends=('mingw-w64-termcap' 'mingw-w64-libunistring')
@ -44,6 +44,7 @@ prepare() {
patch -p0 -i ${srcdir}/08-vs-compatible.patch
# prevents "Cannot export rpl_printf: symbol not found"
patch -p0 -i ${srcdir}/09-gnulib-fix-underscore-cond.patch
autoreconf -i
}
build() {
@ -57,6 +58,7 @@ build() {
[[ ${_arch} == i686-w64-mingw32 ]] && underscore_flag='-DUSER_LABEL_PREFIX_UNDERSCORE'
export CFLAGS="$underscore_flag"
export CXXFLAGS="$underscore_flag"
export LDFLAGS="-lssp"
${_arch}-configure \
--disable-java \
--disable-native-java \