Patchwork [v2,1/2] gcc: gcc-cross-canadian: use correct location for libraries for powerpc64

login
register
mail settings
Submitter Matthew McClintock
Date July 10, 2012, 4:29 a.m.
Message ID <1341894563-32675-1-git-send-email-msm@freescale.com>
Download mbox | patch
Permalink /patch/31597/
State New
Headers show

Comments

Matthew McClintock - July 10, 2012, 4:29 a.m.
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

Signed-off-by: Matthew McClintock <msm@freescale.com>
---
 meta/recipes-devtools/gcc/gcc-4.7.inc               |    2 +-
 meta/recipes-devtools/gcc/gcc-cross-canadian_4.7.bb |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
Saul Wold - July 17, 2012, 3:57 p.m.
On 07/09/2012 09:29 PM, Matthew McClintock wrote:
> 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
>
> Signed-off-by: Matthew McClintock <msm@freescale.com>
> ---
>   meta/recipes-devtools/gcc/gcc-4.7.inc               |    2 +-
>   meta/recipes-devtools/gcc/gcc-cross-canadian_4.7.bb |    4 ++--
>   2 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/meta/recipes-devtools/gcc/gcc-4.7.inc b/meta/recipes-devtools/gcc/gcc-4.7.inc
> index 65153b3..c7dbc3c 100644
> --- a/meta/recipes-devtools/gcc/gcc-4.7.inc
> +++ b/meta/recipes-devtools/gcc/gcc-4.7.inc
> @@ -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
> diff --git a/meta/recipes-devtools/gcc/gcc-cross-canadian_4.7.bb b/meta/recipes-devtools/gcc/gcc-cross-canadian_4.7.bb
> index efa345f..308e6f5 100644
> --- a/meta/recipes-devtools/gcc/gcc-cross-canadian_4.7.bb
> +++ b/meta/recipes-devtools/gcc/gcc-cross-canadian_4.7.bb
> @@ -9,8 +9,8 @@ DEPENDS += "gmp-nativesdk mpfr-nativesdk libmpc-nativesdk elfutils-nativesdk"
>   RDEPENDS_${PN} += "mpfr-nativesdk libmpc-nativesdk elfutils-nativesdk"
>
>   SYSTEMHEADERS = "/usr/include"
> -SYSTEMLIBS = "/lib/"
> -SYSTEMLIBS1 = "/usr/lib/"
> +SYSTEMLIBS = "${target_base_libdir}/"
> +SYSTEMLIBS1 = "${target_libdir}/"
>
>   EXTRA_OECONF += "--disable-libunwind-exceptions --disable-libssp \
>   		--disable-libgomp --disable-libmudflap \
>

Merged this change into OE-Core

Thanks
	Sau!

Patch

diff --git a/meta/recipes-devtools/gcc/gcc-4.7.inc b/meta/recipes-devtools/gcc/gcc-4.7.inc
index 65153b3..c7dbc3c 100644
--- a/meta/recipes-devtools/gcc/gcc-4.7.inc
+++ b/meta/recipes-devtools/gcc/gcc-4.7.inc
@@ -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
diff --git a/meta/recipes-devtools/gcc/gcc-cross-canadian_4.7.bb b/meta/recipes-devtools/gcc/gcc-cross-canadian_4.7.bb
index efa345f..308e6f5 100644
--- a/meta/recipes-devtools/gcc/gcc-cross-canadian_4.7.bb
+++ b/meta/recipes-devtools/gcc/gcc-cross-canadian_4.7.bb
@@ -9,8 +9,8 @@  DEPENDS += "gmp-nativesdk mpfr-nativesdk libmpc-nativesdk elfutils-nativesdk"
 RDEPENDS_${PN} += "mpfr-nativesdk libmpc-nativesdk elfutils-nativesdk"
 
 SYSTEMHEADERS = "/usr/include"
-SYSTEMLIBS = "/lib/"
-SYSTEMLIBS1 = "/usr/lib/"
+SYSTEMLIBS = "${target_base_libdir}/"
+SYSTEMLIBS1 = "${target_libdir}/"
 
 EXTRA_OECONF += "--disable-libunwind-exceptions --disable-libssp \
 		--disable-libgomp --disable-libmudflap \