summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorChangqing Li <changqing.li@windriver.com>2021-05-24 11:43:41 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-05-25 22:36:08 +0100
commitf3ea5898cb915eaea7d8a32e30eb504820c71917 (patch)
tree5bc80b181e6faa02c56880e1e4bf0c12a9165e94 /meta
parentd7daabfbd794a84c1d36311b6ed99f54f24246ce (diff)
downloadpoky-f3ea5898cb915eaea7d8a32e30eb504820c71917.tar.gz
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. (From OE-Core rev: 27867862c1fee6c0e649286500fa1ab015d57faf) Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/unfs3/unfs3_git.bb2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/unfs3/unfs3_git.bb b/meta/recipes-devtools/unfs3/unfs3_git.bb
index a21fb58397..f9bae720cc 100644
--- a/meta/recipes-devtools/unfs3/unfs3_git.bb
+++ b/meta/recipes-devtools/unfs3/unfs3_git.bb
@@ -37,7 +37,7 @@ BBCLASSEXTEND = "native nativesdk"
37inherit autotools 37inherit autotools
38EXTRA_OECONF_append_class-native = " --sbindir=${bindir}" 38EXTRA_OECONF_append_class-native = " --sbindir=${bindir}"
39CFLAGS_append = " -I${STAGING_INCDIR}/tirpc" 39CFLAGS_append = " -I${STAGING_INCDIR}/tirpc"
40LDFLAGS_append = " -ltirpc" 40EXTRA_OECONF_append = " LIBS=-ltirpc"
41 41
42# Turn off these header detects else the inode search 42# Turn off these header detects else the inode search
43# will walk entire file systems and this is a real problem 43# will walk entire file systems and this is a real problem