summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--PKGBUILD5
1 files changed, 3 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 54b3da4..572dc07 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,6 +14,7 @@ pkgdesc='Emulator with builtin DOS for running DOS Games'
arch=('x86_64')
url='http://dosbox.sourceforge.net/'
license=('GPL')
+optiions=('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
@@ -28,8 +29,8 @@ prepare() {
build() {
cd "${srcdir}/$pkgname-0.74-3"
- export CFLAGS="$CFLAGS -O3 -fstack-protector-all -flto=4 -fPIE"
- export CXXFLAGS="$CXXFLAGS -O3 -fstack-protector-all -flto=4 -fPIE"
+ export CFLAGS="$CFLAGS -O3 -fstack-protector-all -fPIE"
+ export CXXFLAGS="$CXXFLAGS -O3 -fstack-protector-all -fPIE"
export LDFLAGS="$LDFLAGS,-pie"
./configure --prefix=/usr --sysconfdir=/etc/dosbox
make