emacs: fix the build with newer gcc (#5508)

workaround a gnulib issue
This commit is contained in:
Christoph Reiter 2025-07-10 22:05:11 +02:00 committed by GitHub
parent 3df4972b74
commit 2ad3cd355d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,7 +2,7 @@
pkgname=emacs pkgname=emacs
pkgver=30.1 pkgver=30.1
pkgrel=2 pkgrel=3
pkgdesc="The extensible, customizable, self-documenting, real-time display editor (msys2)" pkgdesc="The extensible, customizable, self-documenting, real-time display editor (msys2)"
url="https://www.gnu.org/software/${pkgname}/" url="https://www.gnu.org/software/${pkgname}/"
msys2_references=( msys2_references=(
@ -33,6 +33,8 @@ prepare() {
build() { build() {
cd "${srcdir}/${pkgname}-${pkgver}" cd "${srcdir}/${pkgname}-${pkgver}"
# gl_cv_clean_version_stddef:
# https://github.com/msys2/MSYS2-packages/pull/5503#issuecomment-3054117962
CPPFLAGS="-DNDEBUG" CPPFLAGS="-DNDEBUG"
CFLAGS="-pipe -O3 -fomit-frame-pointer -funroll-loops" CFLAGS="-pipe -O3 -fomit-frame-pointer -funroll-loops"
@ -46,7 +48,8 @@ build() {
--with-sound=yes \ --with-sound=yes \
--with-modules \ --with-modules \
--without-compress-install \ --without-compress-install \
--without-native-compilation --without-native-compilation \
gl_cv_clean_version_stddef=yes
make make
} }