summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorSteve Sakoman <steve@sakoman.com>2023-08-03 09:46:59 -1000
committerSteve Sakoman <steve@sakoman.com>2023-08-07 04:40:44 -1000
commitab9b43f60bc125e1e799cf3546491edd4b1b22b3 (patch)
tree635345d3fc8614f805d644147cfa0683277bef04 /meta/recipes-devtools
parent7e2d3b8346a798587e77aff41d59a53145b0fb19 (diff)
downloadpoky-ab9b43f60bc125e1e799cf3546491edd4b1b22b3.tar.gz
gcc: fix runpath errors in cc1 binary
The runpath in the cc1 binary is: Library runpath: [$ORIGIN/../../../recipe-sysroot-native/usr/lib:$ORIGIN/../../../recipe-sysroot-native/lib] This does not match the actual location of the libraries, which would require: Library runpath: [$ORIGIN/../../recipe-sysroot-native/usr/lib:$ORIGIN/../../recipe-sysroot-native/lib] Prior to gcc 9.1 the recipe set B explicity with: B = "${WORKDIR}/gcc-${PV}/build.${HOST_SYS}.${TARGET_SYS}" and this build directory structure matches the runpath in cc1, so there is no issue. This line was commented out in versions 9.1 through 11.3. The upgrade to 12.1 once again uncommented this line. As a result the runpath is incorrect in version 9.1 through 11.3 and cc1 defaults to using host libraries. This patch restores setting B as done in master and versions prior to 9.1 (From OE-Core rev: b6f4b3d43a399c2b446754de56ebea35657e13de) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/gcc/gcc-11.4.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-11.4.inc b/meta/recipes-devtools/gcc/gcc-11.4.inc
index a907661df4..3670f494a6 100644
--- a/meta/recipes-devtools/gcc/gcc-11.4.inc
+++ b/meta/recipes-devtools/gcc/gcc-11.4.inc
@@ -76,7 +76,7 @@ S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-${PV}"
76 76
77# For dev release snapshotting 77# For dev release snapshotting
78#S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-${RELEASE}" 78#S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-${RELEASE}"
79#B = "${WORKDIR}/gcc-${PV}/build.${HOST_SYS}.${TARGET_SYS}" 79B = "${WORKDIR}/gcc-${PV}/build.${HOST_SYS}.${TARGET_SYS}"
80 80
81# Language Overrides 81# Language Overrides
82FORTRAN = "" 82FORTRAN = ""