Skip to contentSkip to conversation

gcc: gcc-cross-canadian: use correct location for libraries for powerpc64

PATCH Superseded Matthew McClintock 3 participants 3 messages Jul 9, 2012 – Jul 10, 2012

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gcc: gcc-cross-canadian: use correct location for libraries for powerpc64

This fixes the issue where gcc invokes the linker with an incorrect -L library location and gives up because it can't find libraries. It was looking in a /lib folder instead of /lib64

---
 meta/recipes-devtools/gcc/gcc-4.7.inc               |    2 +-
 meta/recipes-devtools/gcc/gcc-cross-canadian_4.7.bb |    2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)
meta/recipes-devtools/gcc/gcc-4.7.inc +1 -1
index 65153b3..c7dbc3c 100644
@@ -1,6 +1,6 @@
 require gcc-common.inc
 
-PR = "r2"
+PR = "r3"
 
 # Third digit in PV should be incremented after a minor release
 # happens from this branch on gcc e.g. currently its 4.7.1
meta/recipes-devtools/gcc/gcc-cross-canadian_4.7.bb +2 -0
index efa345f..48b9b13 100644
@@ -11,6 +11,8 @@ RDEPENDS_${PN} += "mpfr-nativesdk libmpc-nativesdk elfutils-nativesdk"
 SYSTEMHEADERS = "/usr/include"
 SYSTEMLIBS = "/lib/"
 SYSTEMLIBS1 = "/usr/lib/"
+SYSTEMLIBS_powerpc64 = "/lib64/"
+SYSTEMLIBS1_powerpc64 = "/usr/lib64/"
 
 EXTRA_OECONF += "--disable-libunwind-exceptions --disable-libssp \
 		--disable-libgomp --disable-libmudflap \
Signature · 1 line
1.7.10
#1 lore raw
Quoted 27 lines · Matthew McClintock

This fixes the issue where gcc invokes the linker with an incorrect -L library location and gives up because it can't find libraries. It was looking in a /lib folder instead of /lib64

---
 meta/recipes-devtools/gcc/gcc-4.7.inc               |    2 +-
 meta/recipes-devtools/gcc/gcc-cross-canadian_4.7.bb |    2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)
meta/recipes-devtools/gcc/gcc-4.7.inc +1 -1
index 65153b3..c7dbc3c 100644
@@ -1,6 +1,6 @@
 require gcc-common.inc
 
-PR = "r2"
+PR = "r3"
 
 # Third digit in PV should be incremented after a minor release
 # happens from this branch on gcc e.g. currently its 4.7.1
meta/recipes-devtools/gcc/gcc-cross-canadian_4.7.bb +0 -0
index efa345f..48b9b13 100644

meta/recipes-devtools/gcc/gcc-cross-canadian_4.7.bb RDEPENDS_${PN} += "mpfr-nativesdk libmpc-nativesdk elfutils-nativesdk" · line 15

Quoted 5 lines
meta/recipes-devtools/gcc/gcc-cross-canadian_4.7.bb +2 -0
@@ -11,6 +11,8 @@ RDEPENDS_${PN} += "mpfr-nativesdk libmpc-nativesdk elfutils-nativesdk"
 SYSTEMHEADERS = "/usr/include"
 SYSTEMLIBS = "/lib/"
 SYSTEMLIBS1 = "/usr/lib/"
+SYSTEMLIBS_powerpc64 = "/lib64/"
+SYSTEMLIBS1_powerpc64 = "/usr/lib64/"

How about using

SYSTEMLIBS = "${target_base_libdir}/"
SYSTEMLIBS1 = "${target_libdir}/"

and avoiding the override completely ?

#2 lore raw
Quoted 36 lines · Khem Raj
Quoted 27 lines · Matthew McClintock

This fixes the issue where gcc invokes the linker with an incorrect -L library location and gives up because it can't find libraries. It was looking in a /lib folder instead of /lib64

---
 meta/recipes-devtools/gcc/gcc-4.7.inc               |    2 +-
 meta/recipes-devtools/gcc/gcc-cross-canadian_4.7.bb |    2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)
meta/recipes-devtools/gcc/gcc-4.7.inc +1 -1
index 65153b3..c7dbc3c 100644
@@ -1,6 +1,6 @@
 require gcc-common.inc
 
-PR = "r2"
+PR = "r3"
 
 # Third digit in PV should be incremented after a minor release
 # happens from this branch on gcc e.g. currently its 4.7.1
meta/recipes-devtools/gcc/gcc-cross-canadian_4.7.bb +0 -0
index efa345f..48b9b13 100644

meta/recipes-devtools/gcc/gcc-cross-canadian_4.7.bb RDEPENDS_${PN} += "mpfr-nativesdk libmpc-nativesdk elfutils-nativesdk" · line 15

Quoted 5 lines
meta/recipes-devtools/gcc/gcc-cross-canadian_4.7.bb +2 -0
@@ -11,6 +11,8 @@ RDEPENDS_${PN} += "mpfr-nativesdk libmpc-nativesdk elfutils-nativesdk"
 SYSTEMHEADERS = "/usr/include"
 SYSTEMLIBS = "/lib/"
 SYSTEMLIBS1 = "/usr/lib/"
+SYSTEMLIBS_powerpc64 = "/lib64/"
+SYSTEMLIBS1_powerpc64 = "/usr/lib64/"

How about using

Quoted 4 lines

SYSTEMLIBS = "${target_base_libdir}/"
SYSTEMLIBS1 = "${target_libdir}/"

and avoiding the override completely ?

This seems equivalent... will respin patch.

-M

Quoted 5 lines

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core