diff options
author | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2023-04-10 11:00:59 -0700 |
---|---|---|
committer | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2023-04-10 11:00:59 -0700 |
commit | 99d1d5c297e421285fe22fd17735e3069ed04d2a (patch) | |
tree | 305bfa1207ed585cfc0fa16e9bd1e755bbd1f82f | |
parent | Updated to 1.7.4 (diff) | |
download | tome4-99d1d5c297e421285fe22fd17735e3069ed04d2a.tar.xz |
Restrict flto to 1 to prevent build failures.
-rw-r--r-- | PKGBUILD | 17 |
1 files changed, 10 insertions, 7 deletions
@@ -12,7 +12,7 @@ pkgname=tome4 pkgver=1.7.4 -pkgrel=1 +pkgrel=1.2 _offlinever=1.7 _ashesver=1.1.4 _orcsver=1.1.10 @@ -24,7 +24,7 @@ url="https://te4.org/" license=('custom' 'GPL3') depends=(glu openal libvorbis sdl2_ttf sdl2_image) makedepends=(premake zip unzip) -options=(emptydirs !makeflags) +options=(emptydirs !makeflags !lto) source=("${url}dl/t-engine/t-engine4-src-${pkgver}.tar.bz2" ashes-urhrok_${_ashesver}.teaac orcs_${_orcsver}.teaac @@ -69,11 +69,14 @@ build() { cd t-engine4-src-${pkgver} premake5 gmake - # higher than -j1 or -flto=1 breaks compiling - export CFLAGS="$CFLAGS -O3 -fstack-protector-all -flto=1 -fPIE" - export CXXFLAGS="$CXXFLAGS -O3 -fstack-protector-all -flto=1 -fPIE" - export LDFLAGS="$LDFLAGS,-pie" - make config=release + + # higher than -flto=1 breaks compiling + export CFLAGS="$CFLAGS -O3 -fstack-protector-all -flto=1 -fPIE" + export CXXFLAGS="$CXXFLAGS -O3 -fstack-protector-all -flto=1 -fPIE" + export LDFLAGS="$LDFLAGS,-pie" + + # higher than -j1 breaks compiling + make config=release -j1 } ############################################################################### |