diff options
author | Changqing Li <changqing.li@windriver.com> | 2021-05-21 11:14:36 +0800 |
---|---|---|
committer | Robert Roth <robert.roth.off@gmail.com> | 2022-03-28 12:46:16 +0000 |
commit | 3b078fafa5e409b786d9975bbf16683aebccabb5 (patch) | |
tree | 4b14dff530c2c6389285603bccd2bdc0614093ca | |
parent | 3d7870c961e41f99ad31caf2c4bcbc875fce40a7 (diff) | |
download | libgtop-3b078fafa5e409b786d9975bbf16683aebccabb5.tar.gz |
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>
-rw-r--r-- | configure.ac | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 5686c5ba..5df6bc54 100644 --- a/configure.ac +++ b/configure.ac @@ -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" |