PKGBUILDs/configure/mingw-w64/PKGBUILD
Martchus f0175878db Don't use -fstack-protector-strong when compiling for Windows
Initial motivation of adding the flag was better consistency with
compile flags used for regular Arch Linux packages.

However, adding -fstack-protector-strong seems to cause segmentation
faults even before main() is called.

The issue is not reproducible with a simple hello world app and also
not reproducible when launching the app under Linux with WINE. But
a full-blown Qt 5 app crashes in the way described.
2019-01-05 01:47:00 +01:00

28 lines
603 B
Bash

pkgname=mingw-w64-configure
pkgver=0.1.1
pkgrel=2.2
arch=(any)
pkgdesc="configure wrapper for MinGW (mingw-w64)"
depends=('mingw-w64-gcc' 'mingw-w64-pkg-config')
license=("GPL")
url="http://fedoraproject.org/wiki/MinGW"
source=("mingw-configure.sh")
md5sums=('SKIP')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
build() {
for _arch in ${_architectures}; do
sed "s|@TRIPLE@|${_arch}|g" mingw-configure.sh > ${_arch}-configure
done
}
package() {
install -d "${pkgdir}"/usr/bin
for _arch in ${_architectures}; do
install -m 755 ${_arch}-configure "${pkgdir}"/usr/bin/
done
}