tgt: fix PIE.

This commit is contained in:
Christian Neukirchen 2016-05-24 13:56:00 +02:00
parent 08a94c7f37
commit 13bb2e13cd

View file

@ -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 <sys/user.h>' usr/tgtd.h usr/util.h
sed -i '1i#include <fcntl.h>' usr/libssc.c
sed -i 's/__always_inline/inline/g' usr/util.h