diff options
author | tugdilgoldhand | 2016-02-28 11:22:33 +0100 |
---|---|---|
committer | tugdilgoldhand | 2016-02-28 11:22:33 +0100 |
commit | c93566e0862f0d8a5b8739636cb1546169c9e249 (patch) | |
tree | 6ffaf1d1f45757857fc5b60bc3f78f9cf7453629 /PKGBUILD | |
parent | debbac0ac7f51974d065769906236d4f9a404c3a (diff) | |
download | aur-c93566e0862f0d8a5b8739636cb1546169c9e249.tar.gz |
Bump to rel 2 and add hardening flags
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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' |