From f0a87072c32b63665313396732d02209d13a117f Mon Sep 17 00:00:00 2001 From: jc_gargma Date: Thu, 5 Sep 2019 23:36:31 -0700 Subject: Rebuild with -fPIE Fix pkgrel --- PKGBUILD | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index e17d882..ac39cd5 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -14,7 +14,7 @@ pkgname=chrony pkgver=3.5 -pkgrel=3 +pkgrel=2.4 pkgdesc='Lightweight NTP client and server' url='https://chrony.tuxfamily.org/' arch=('x86_64') @@ -45,8 +45,9 @@ prepare() { build() { cd ${pkgname}-${pkgver} - export CFLAGS="$CFLAGS -O3 -fstack-protector-all -flto=4" - export CXXFLAGS="$CXXFLAGS -O3 -fstack-protector-all -flto=4" + export CFLAGS="$CFLAGS -O3 -fstack-protector-all -flto=4 -fPIE" + export CXXFLAGS="$CXXFLAGS -O3 -fstack-protector-all -flto=4 -fPIE" + export LDFLAGS="$LDFLAGS,-pie" ./configure \ --prefix=/usr \ --enable-scfilter \ -- cgit v1.2.1