mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 05:29:32 +00:00
glibc: use cross-rpcgen to replace host's rpcgen
There might be unexpected errors when use host's rpcgen. [YOCTO #8181] (From OE-Core rev: 7daac5798ac9e64efe00d8fca3adc463858a185d) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
ee80b725aa
commit
f62afbf633
@@ -97,10 +97,6 @@ do_configure () {
|
|||||||
# calls for now
|
# calls for now
|
||||||
# don't pass CPPFLAGS into configure, since it upsets the kernel-headers
|
# don't pass CPPFLAGS into configure, since it upsets the kernel-headers
|
||||||
# version check and doesn't really help with anything
|
# version check and doesn't really help with anything
|
||||||
if [ -z "`which rpcgen`" ]; then
|
|
||||||
echo "rpcgen not found. Install glibc-devel."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
(cd ${S} && gnu-configize) || die "failure in running gnu-configize"
|
(cd ${S} && gnu-configize) || die "failure in running gnu-configize"
|
||||||
find ${S} -name "configure" | xargs touch
|
find ${S} -name "configure" | xargs touch
|
||||||
CPPFLAGS="" oe_runconf
|
CPPFLAGS="" oe_runconf
|
||||||
@@ -119,7 +115,7 @@ do_compile () {
|
|||||||
for r in ${rpcsvc}; do
|
for r in ${rpcsvc}; do
|
||||||
h=`echo $r|sed -e's,\.x$,.h,'`
|
h=`echo $r|sed -e's,\.x$,.h,'`
|
||||||
rm -f $h
|
rm -f $h
|
||||||
rpcgen -h $r -o $h || bbwarn "${PN}: unable to generate header for $r"
|
${B}/sunrpc/cross-rpcgen -h $r -o $h || bbwarn "${PN}: unable to generate header for $r"
|
||||||
done
|
done
|
||||||
)
|
)
|
||||||
echo "Adjust ldd script"
|
echo "Adjust ldd script"
|
||||||
|
|||||||
Reference in New Issue
Block a user