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