configure.ac: fix cross compile error

On some distros, such as fedora32, cross compile failed
with following error since host library  is used.
undefined reference to `stat64@GLIBC_2.33'

According doc of ld, set searchdir begins with "=", but not hardcoded
locations.

Signed-off-by: Changqing Li <changqing.li@windriver.com>
This commit is contained in:
Changqing Li
2021-05-21 11:14:36 +08:00
committed by Robert Roth
parent 3d7870c961
commit 3b078fafa5

View File

@@ -284,8 +284,8 @@ AC_ARG_ENABLE(fatal-warnings,
[Define to enable fatal warnings]))
dnl These definitions are expanded in make.
LIBGTOP_LIBS='-L$(libdir)'
LIBGTOP_INCS='-I$(includedir)/libgtop-2.0'
LIBGTOP_LIBS='-L=$(libdir)'
LIBGTOP_INCS='-I=$(includedir)/libgtop-2.0'
if test x$libgtop_have_sysinfo = xyes ; then
LIBGTOP_INCS="$LIBGTOP_INCS -DHAVE_LIBGTOP_SYSINFO"