diff options
author | Changqing Li <changqing.li@windriver.com> | 2021-05-24 11:43:41 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-06-03 16:30:56 +0100 |
commit | 893636b299b7d056063aea50fc3d3e49e8ec3a79 (patch) | |
tree | 5f2658d2d360a4ac74e59b5515d9caa06e55e2b7 | |
parent | cf233ab626cfa4731c7967d5073451cca1e5ab97 (diff) | |
download | poky-893636b299b7d056063aea50fc3d3e49e8ec3a79.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: 09b9027a9da8b5cf34e1f1c016d9d6bbbe904dcf)
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: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-devtools/unfs3/unfs3_git.bb | 2 |
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 5a3c060ba9..b1882defa2 100644 --- a/meta/recipes-devtools/unfs3/unfs3_git.bb +++ b/meta/recipes-devtools/unfs3/unfs3_git.bb | |||
@@ -36,7 +36,7 @@ BBCLASSEXTEND = "native nativesdk" | |||
36 | inherit autotools | 36 | inherit autotools |
37 | EXTRA_OECONF_append_class-native = " --sbindir=${bindir}" | 37 | EXTRA_OECONF_append_class-native = " --sbindir=${bindir}" |
38 | CFLAGS_append = " -I${STAGING_INCDIR}/tirpc" | 38 | CFLAGS_append = " -I${STAGING_INCDIR}/tirpc" |
39 | LDFLAGS_append = " -ltirpc" | 39 | EXTRA_OECONF_append = " LIBS=-ltirpc" |
40 | 40 | ||
41 | # Turn off these header detects else the inode search | 41 | # Turn off these header detects else the inode search |
42 | # will walk entire file systems and this is a real problem | 42 | # will walk entire file systems and this is a real problem |