Martchus
f0175878db
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.
40 lines
1.2 KiB
Bash
40 lines
1.2 KiB
Bash
|
|
pkgname=mingw-w64-cmake
|
|
pkgver=1
|
|
pkgrel=23.2
|
|
arch=('any')
|
|
pkgdesc="CMake wrapper for MinGW (mingw-w64)"
|
|
depends=('cmake' 'mingw-w64-gcc' 'mingw-w64-pkg-config')
|
|
optdepends=('mingw-w64-wine: runtime support')
|
|
license=("GPL")
|
|
url="http://fedoraproject.org/wiki/MinGW"
|
|
source=("mingw-cmake.sh"
|
|
"mingw-cmake-py.sh"
|
|
"toolchain-mingw.cmake")
|
|
sha256sums=('SKIP' 'SKIP' "SKIP")
|
|
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
|
|
_python_versions="27 35 36 37"
|
|
|
|
build() {
|
|
for _arch in ${_architectures}; do
|
|
sed "s|@TRIPLE@|${_arch}|g;s|@PROCESSOR@|${_arch::-12}|g" toolchain-mingw.cmake > toolchain-${_arch}.cmake
|
|
sed "s|@TRIPLE@|${_arch}|g" mingw-cmake.sh > ${_arch}-cmake
|
|
for _pyver in ${_python_versions}; do
|
|
sed "s|@TRIPLE@|${_arch}|g;s|@PYMAJMIN@|${_pyver}|g" mingw-cmake-py.sh > ${_arch}-cmake-py${_pyver}
|
|
done
|
|
done
|
|
}
|
|
|
|
package() {
|
|
install -d "${pkgdir}"/usr/bin
|
|
install -d "${pkgdir}"/usr/share/mingw
|
|
for _arch in ${_architectures}; do
|
|
install -m 644 toolchain-${_arch}.cmake "${pkgdir}"/usr/share/mingw/
|
|
install -m 755 ${_arch}-cmake "${pkgdir}"/usr/bin/
|
|
for _pyver in ${_python_versions}; do
|
|
install -m 755 ${_arch}-cmake-py${_pyver} "${pkgdir}"/usr/bin/
|
|
done
|
|
done
|
|
}
|
|
|