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:
committed by
Robert Roth
parent
3d7870c961
commit
3b078fafa5
@@ -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"
|
||||
|
Reference in New Issue
Block a user