forked from openembedded/meta-openembedded
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Signed-off-by: Khem Raj <[email protected]> (cherry picked from commit a6d1ddf) Signed-off-by: Armin Kuster <[email protected]>
- Loading branch information
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
meta-gnome/recipes-gnome/libgtop/libgtop/0001-fix-compile-error-for-cross-compile.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
From e865a93000913b4597607289356114cd159f4e28 Mon Sep 17 00:00:00 2001 | ||
From: Your Name <[email protected]> | ||
Date: Fri, 21 May 2021 03:02:29 +0000 | ||
Subject: [PATCH] fix compile error for cross compile | ||
|
||
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. | ||
|
||
Upstream-Status: Submitted [https://gitlab.gnome.org/GNOME/libgtop/-/merge_requests/26] | ||
|
||
Signed-off-by: Changqing Li <[email protected]> | ||
--- | ||
configure.ac | 4 ++-- | ||
1 file changed, 2 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/configure.ac b/configure.ac | ||
index 472f44b..ed6a4d7 100644 | ||
--- a/configure.ac | ||
+++ b/configure.ac | ||
@@ -270,8 +270,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" | ||
-- | ||
2.26.2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters