From 13bb2e13cd4fa1a424af3fe82b927464f3fee6bc Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Tue, 24 May 2016 13:56:00 +0200 Subject: [PATCH] tgt: fix PIE. --- srcpkgs/tgt/template | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/srcpkgs/tgt/template b/srcpkgs/tgt/template index 58fccebf8f9..e5b650586fc 100644 --- a/srcpkgs/tgt/template +++ b/srcpkgs/tgt/template @@ -1,7 +1,7 @@ # Template file for 'tgt' pkgname=tgt version=1.0.64 -revision=1 +revision=2 build_style=gnu-makefile make_install_args="sbindir=/usr/bin" conf_files="/etc/tgt/targets.conf" @@ -17,6 +17,7 @@ checksum=fd47340040308984edf50a7910121f4a17d13d296b1c5eaa6e7f4bad4d3b3fc0 post_extract() { sed -i 's/CFLAGS/MYCFLAGS/; s/\$(MYCFLAGS)/& $(CFLAGS)/g' usr/Makefile + sed -i '/^LDFLAGS/d; /CC.*-o/s/$/ $(LDFLAGS)/' usr/Makefile sed -i '1i#include ' usr/tgtd.h usr/util.h sed -i '1i#include ' usr/libssc.c sed -i 's/__always_inline/inline/g' usr/util.h