pkg-config: build without stack protector

it crashes otherwise
This commit is contained in:
Christoph Reiter
2023-09-28 21:12:44 +02:00
parent d46eeb5dee
commit 77db883b0e

View File

@@ -4,7 +4,7 @@ _realname=pkg-config
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=0.29.2
pkgrel=5
pkgrel=6
pkgdesc="A system for managing library compile/link flags (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32')
@@ -12,8 +12,6 @@ msys2_references=(
'archlinux'
'aur'
)
# XXX: buildflags makes things crash: needs investigation which one
options=("!buildflags")
url="https://www.freedesktop.org/wiki/Software/pkg-config/"
license=('spdx:GPL-2.0-or-later')
depends=("${MINGW_PACKAGE_PREFIX}-libwinpthread")
@@ -67,6 +65,9 @@ prepare() {
build() {
mkdir -p ${srcdir}/build-${MSYSTEM} && cd ${srcdir}/build-${MSYSTEM}
# XXX: pkg-config crashes otherwise on start (but not under gdb)
CFLAGS+=" -fno-stack-protector"
CFLAGS+=" -Wno-int-conversion" \
../${_realname}-${pkgver}/configure \
--prefix=${MINGW_PREFIX} \