summaryrefslogtreecommitdiff
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD5
1 files changed, 5 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 32faf18..b4225e8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -50,6 +50,11 @@ prepare() {
build() {
cd "$srcdir/OpenRCT2-$pkgver"
+ # lto breaks compiling
+ export CFLAGS="$CFLAGS -O3 -fstack-protector-all -fPIE"
+ export CXXFLAGS="$CXXFLAGS -O3 -fstack-protector-all -fPIE"
+ export LDFLAGS="$LDFLAGS,-pie"
+
mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \