]> code.ossystems Code Review - openembedded-core.git/commit
unfs3: correct configure option hardknott
authorChangqing Li <changqing.li@windriver.com>
Mon, 24 May 2021 03:43:41 +0000 (11:43 +0800)
committerAnuj Mittal <anuj.mittal@intel.com>
Mon, 7 Mar 2022 14:19:01 +0000 (22:19 +0800)
commitd0b1807edc10835beff9a55a105ac191b6ac2fe7
tree6b6cdcf1f00cc80641a1651721e108743e9676a7
parenta16f2994e270ecb2844cb6b442d219a8c8e0b385
unfs3: correct configure option

On some new distro like ubuntu21.04, unfs3-native compile failed with
error: undefined reference to `xdr_uint32', since new distro has new
glibc.

>From glibc 2.27 rpc support is dropped, so unfs3 need to link to
libtirpc.

Here is defination of ac_link:
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'

Depended library should be added into LIBS, not LDFLAGS, otherwise,
gcc may not load the lib since it is before conftest.$ac_ext during
configure. Finally, it results in compile failed.

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 27867862c1fee6c0e649286500fa1ab015d57faf)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
meta/recipes-devtools/unfs3/unfs3_git.bb