summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjc_gargma <jc_gargma@iserlohn-fortress.net>2024-07-25 16:34:28 -0700
committerjc_gargma <jc_gargma@iserlohn-fortress.net>2024-07-25 16:34:28 -0700
commit837a7d2f28765e28c97b45d49c10540607a8b066 (patch)
tree859cb892e3f91b5a3b645410b54fbb68b6e063cb
parentSwitch to modern lto syntax. (diff)
downloaddosbox-master.tar.xz
Fix lto.HEADmaster
-rw-r--r--PKGBUILD11
1 files changed, 7 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 572dc07..4540dd2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,12 +9,15 @@
pkgname=dosbox
pkgver=0.74.3
-pkgrel=2
+pkgrel=2.2
pkgdesc='Emulator with builtin DOS for running DOS Games'
arch=('x86_64')
url='http://dosbox.sourceforge.net/'
license=('GPL')
-optiions=('lto')
+# # For some reason this breaks compiling. "error: C compiler cannot create executables"
+# # But old-fashioned raw injection of -flto=auto via export doesn't.
+# # Now explicitly disabled because arch now forces it by default.
+options=(!lto)
depends=('sdl_net' 'zlib' 'sdl_sound' 'libgl' 'libpng' 'alsa-lib' 'gcc-libs' 'glu')
makedepends=('mesa-libgl' 'gendesk' 'patch')
source=(https://downloads.sourceforge.net/$pkgname/$pkgname-0.74-3.tar.gz
@@ -29,8 +32,8 @@ prepare() {
build() {
cd "${srcdir}/$pkgname-0.74-3"
- export CFLAGS="$CFLAGS -O3 -fstack-protector-all -fPIE"
- export CXXFLAGS="$CXXFLAGS -O3 -fstack-protector-all -fPIE"
+ export CFLAGS="$CFLAGS -O3 -fstack-protector-all -flto=auto -fPIE"
+ export CXXFLAGS="$CXXFLAGS -O3 -fstack-protector-all -flto=auto -fPIE"
export LDFLAGS="$LDFLAGS,-pie"
./configure --prefix=/usr --sysconfdir=/etc/dosbox
make