summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authortugdilgoldhand2016-02-28 11:22:33 +0100
committertugdilgoldhand2016-02-28 11:22:33 +0100
commitc93566e0862f0d8a5b8739636cb1546169c9e249 (patch)
tree6ffaf1d1f45757857fc5b60bc3f78f9cf7453629
parentdebbac0ac7f51974d065769906236d4f9a404c3a (diff)
downloadaur-c93566e0862f0d8a5b8739636cb1546169c9e249.tar.gz
Bump to rel 2 and add hardening flags
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD7
2 files changed, 5 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 683de478ec5c..582c1f61753f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,7 @@
-# Generated by makepkg 5.0.0
-# Thu Feb 25 18:39:09 UTC 2016
pkgbase = mupdf-nojs
pkgdesc = Lightweight PDF and XPS viewer
pkgver = 1.8
- pkgrel = 1
+ pkgrel = 2
url = http://mupdf.com
install = mupdf.install
arch = i686
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'