I was seeing this issue also on arm (raspberrypi4), so it's not specific to aarch64 as subject says. With this fix I'm still seeing build failure: | ppsthread.c:1281: error: undefined reference to 'pthread_create' going back to 3.19 fixes both issues (so it's not caused by my setup). On Fri, May 15, 2020 at 2:24 PM Nicolas Dechesne < nicolas.dechesne@linaro.org> wrote: > > > On Fri, May 15, 2020 at 2:14 PM Sean Nyekjaer wrote: > >> Explicitly add ${CC} as linker, for it to understand -Wl option. >> >> Signed-off-by: Sean Nyekjaer >> --- >> >> Alistair please check in your setup :) >> > > I had found the same error on dragonboard/arm64. This patch fixes the > build problem. Note that I have only done build test, not run time. > thanks! > > >> >> meta-oe/recipes-navigation/gpsd/gpsd_3.20.bb | 3 +++ >> 1 file changed, 3 insertions(+) >> >> diff --git a/meta-oe/recipes-navigation/gpsd/gpsd_3.20.bb >> b/meta-oe/recipes-navigation/gpsd/gpsd_3.20.bb >> index 0914f7ec2..5463c8231 100644 >> --- a/meta-oe/recipes-navigation/gpsd/gpsd_3.20.bb >> +++ b/meta-oe/recipes-navigation/gpsd/gpsd_3.20.bb >> @@ -35,6 +35,7 @@ EXTRA_OESCONS = " \ >> systemd='${SYSTEMD_OESCONS}' \ >> libdir='${libdir}' \ >> manbuild='false' \ >> + LINK='${CC}' \ >> ${PACKAGECONFIG_CONFARGS} \ >> " >> # this cannot be used, because then chrpath is not found and only static >> lib is built >> @@ -44,6 +45,7 @@ do_compile_prepend() { >> export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}" >> export >> PKG_CONFIG="PKG_CONFIG_SYSROOT_DIR=\"${PKG_CONFIG_SYSROOT_DIR}\" pkg-config" >> export STAGING_PREFIX="${STAGING_DIR_HOST}/${prefix}" >> + export LD="${CC}" >> export LINKFLAGS="${LDFLAGS}" >> } >> >> @@ -51,6 +53,7 @@ do_install() { >> export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}" >> export >> PKG_CONFIG="PKG_CONFIG_SYSROOT_DIR=\"${PKG_CONFIG_SYSROOT_DIR}\" pkg-config" >> export STAGING_PREFIX="${STAGING_DIR_HOST}/${prefix}" >> + export LD="${CC}" >> export LINKFLAGS="${LDFLAGS}" >> >> export DESTDIR="${D}" >> -- >> 2.26.2 >> >> >> >