tgt: fixes for musl.
This commit is contained in:
parent
d644b9253a
commit
13c8a0d9ef
@ -1,7 +1,7 @@
|
|||||||
# Template file for 'tgt'
|
# Template file for 'tgt'
|
||||||
pkgname=tgt
|
pkgname=tgt
|
||||||
version=1.0.58
|
version=1.0.58
|
||||||
revision=2
|
revision=3
|
||||||
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,9 @@ checksum=3ae59c7374c68b3ef5abf472895d81dd1b036d0301b4111f272de154dbb082a9
|
|||||||
|
|
||||||
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 '1i#include <sys/reg.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
|
||||||
|
|
||||||
}
|
}
|
||||||
post_install() {
|
post_install() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user