diff options
-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 |