rpcsvc-proto: fix cross
This commit is contained in:
parent
506c2faf14
commit
fee5a7a87b
1 changed files with 8 additions and 1 deletions
|
@ -11,7 +11,14 @@ changelog="https://raw.githubusercontent.com/thkukuk/rpcsvc-proto/master/ChangeL
|
|||
distfiles="https://github.com/thkukuk/rpcsvc-proto/releases/download/v${version}/rpcsvc-proto-${version}.tar.gz"
|
||||
checksum=867e46767812784d8dda6d8d931d6fabb30168abb02d87a2a205be6d5a2934a7
|
||||
|
||||
nocross="runs rpsvc binary compiled against the target system on the host machine"
|
||||
pre_build() {
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
make -C rpcgen CC=${CC_host} CFLAGS="${XBPS_CFLAGS}" LDFLAGS="${XBPS_LDFLAGS}"
|
||||
cp rpcgen/rpcgen rpcgen/rpcgen-host
|
||||
make -C rpcgen clean
|
||||
sed -i -e 's!rpcgen/rpcgen!rpcgen/rpcgen-host!' rpcsvc/Makefile.in
|
||||
fi
|
||||
}
|
||||
|
||||
post_install() {
|
||||
vlicense COPYING
|
||||
|
|
Loading…
Reference in a new issue