diff options
author | Frederic Bezies | 2024-05-19 18:37:06 +0200 |
---|---|---|
committer | Frederic Bezies | 2024-05-19 18:37:06 +0200 |
commit | cda607714204b1235ea0229b34a9f15af8f8c3ed (patch) | |
tree | 001a7a47968e1da9f8aa5bf7aa2a969753f248b5 | |
parent | 64a20045bf5faa13ab56211ba03c260e3b80cfb5 (diff) | |
download | aur-cda607714204b1235ea0229b34a9f15af8f8c3ed.tar.gz |
Workaround a bug in gcc 13.x+
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 9 |
2 files changed, 9 insertions, 2 deletions
@@ -1,7 +1,7 @@ pkgbase = dosbox-x-sdl2 pkgdesc = x86 emulator with builtin DOS, with patches and more features pkgver = 2024.03.01 - pkgrel = 4 + pkgrel = 5 url = http://dosbox-x.com arch = i686 arch = x86_64 @@ -3,7 +3,7 @@ pkgname=dosbox-x-sdl2 _pkgname=dosbox-x pkgver=2024.03.01 -pkgrel=4 +pkgrel=5 pkgdesc="x86 emulator with builtin DOS, with patches and more features" arch=(i686 x86_64 aarch64) url="http://dosbox-x.com" @@ -18,6 +18,13 @@ options=(!debug) build() { cd "$srcdir/dosbox-x-dosbox-x-v$pkgver" + + # Workaround a bug in gcc 13.x+ grabbed from dosbox-x AUR PKGBUILD + + export CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \ + -Wp,-D_FORTIFY_SOURCE=2 -Wformat \ + -fstack-clash-protection -fcf-protection" + export CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS" ./autogen.sh ./configure --enable-debug --enable-avcodec --prefix=/usr --enable-sdl2 |