Date: Sunday, October 20, 2019 @ 22:31:33 Author: arodseth Revision: 518039
upgpkg: liteide 36.1-2 Add relro for the main IDE executable. Modified: liteide/trunk/PKGBUILD ----------+ PKGBUILD | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2019-10-20 22:22:32 UTC (rev 518038) +++ PKGBUILD 2019-10-20 22:31:33 UTC (rev 518039) @@ -5,14 +5,15 @@ pkgname=liteide pkgver=36.1 -pkgrel=1 +pkgrel=2 pkgdesc='IDE for editing and building projects written in the Go programming language' license=(LGPL) arch=(x86_64) url='https://github.com/visualfc/liteide' -makedepends=(go git imagemagick mercurial setconf) +makedepends=(go-pie git imagemagick mercurial setconf) depends=(go-tools qt5-webkit) -optdepends=('go: go compiler' +optdepends=('go-pie: go compiler' + 'go: go compiler' 'gcc-go: go compiler') options=(!strip !emptydirs) source=("$pkgname-x$pkgver::git+https://github.com/visualfc/liteide.git#tag=x$pkgver") @@ -28,6 +29,10 @@ # Fix the libpng warning: iCCP: known incorrect sRGB profile find "$srcdir" -type f -iname "*.png" -exec mogrify -strip '{}' \; + + # relro + sed -i 's/"CONFIG+=release"/"CONFIG+=release" "QMAKE_LFLAGS+=-Wl,-z,relro,-z,now" "QMAKE_CXXFLAGS+=-Wl,-z,relro,-z,now"/g' \ + "$srcdir/liteide-x$pkgver/build/build_linux.sh" } build() {