tgt: fix PIE.
This commit is contained in:
parent
08a94c7f37
commit
13bb2e13cd
1 changed files with 2 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'tgt'
|
# Template file for 'tgt'
|
||||||
pkgname=tgt
|
pkgname=tgt
|
||||||
version=1.0.64
|
version=1.0.64
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
make_install_args="sbindir=/usr/bin"
|
make_install_args="sbindir=/usr/bin"
|
||||||
conf_files="/etc/tgt/targets.conf"
|
conf_files="/etc/tgt/targets.conf"
|
||||||
|
@ -17,6 +17,7 @@ checksum=fd47340040308984edf50a7910121f4a17d13d296b1c5eaa6e7f4bad4d3b3fc0
|
||||||
|
|
||||||
post_extract() {
|
post_extract() {
|
||||||
sed -i 's/CFLAGS/MYCFLAGS/; s/\$(MYCFLAGS)/& $(CFLAGS)/g' usr/Makefile
|
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 <sys/user.h>' usr/tgtd.h usr/util.h
|
||||||
sed -i '1i#include <fcntl.h>' usr/libssc.c
|
sed -i '1i#include <fcntl.h>' usr/libssc.c
|
||||||
sed -i 's/__always_inline/inline/g' usr/util.h
|
sed -i 's/__always_inline/inline/g' usr/util.h
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue