From a963e9b41f347170b66b82419c0286cdb65f291a Mon Sep 17 00:00:00 2001 From: jc_gargma Date: Sat, 11 Jan 2020 23:49:59 -0800 Subject: Compilation notes --- PKGBUILD | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 234be95..8ec8060 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -68,8 +68,9 @@ build() { cd t-engine4-src-${pkgver} premake4 gmake - export CFLAGS="$CFLAGS -fstack-protector-all -fPIE" - export CXXFLAGS="$CXXFLAGS -fstack-protector-all -fPIE" + # lto breaks compiling + export CFLAGS="$CFLAGS -O3 -fstack-protector-all -fPIE" + export CXXFLAGS="$CXXFLAGS -O3 -fstack-protector-all -fPIE" export LDFLAGS="$LDFLAGS,-pie" make config=release } -- cgit v1.2.1