summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authortugdilgoldhand2016-02-28 11:22:33 +0100
committertugdilgoldhand2016-02-28 11:22:33 +0100
commitc93566e0862f0d8a5b8739636cb1546169c9e249 (patch)
tree6ffaf1d1f45757857fc5b60bc3f78f9cf7453629 /PKGBUILD
parentdebbac0ac7f51974d065769906236d4f9a404c3a (diff)
downloadaur-c93566e0862f0d8a5b8739636cb1546169c9e249.tar.gz
Bump to rel 2 and add hardening flags
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD7
1 files changed, 4 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 24df1a856d6c..f26cd46d04d3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,7 +9,7 @@
_pkgname=mupdf
pkgname=${_pkgname}-nojs
pkgver=1.8
-pkgrel=1
+pkgrel=2
pkgdesc='Lightweight PDF and XPS viewer'
arch=('i686' 'x86_64')
url='http://mupdf.com'
@@ -39,8 +39,9 @@ prepare() {
}
build() {
- CFLAGS+=' -fPIC'
- CXXFLAGS+=' -fPIC'
+ CFLAGS+=' -fPIC -fPIE -fstack-protector-all -D_FORTIFY_SOURCE=2'
+ CXXFLAGS+=' -fPIC -fPIE -fstack-protector-all -D_FORTIFY_SOURCE=2'
+ LDFLAGS+=' -pie'
cd $_pkgname-${pkgver/_/}-source
make build=release CURL_LIBS='-lcurl -lpthread'