All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gcc: gcc-cross-canadian: use correct location for libraries for powerpc64
@ 2012-07-09 22:47 Matthew McClintock
  2012-07-10  1:37 ` Khem Raj
  0 siblings, 1 reply; 3+ messages in thread
From: Matthew McClintock @ 2012-07-09 22:47 UTC (permalink / raw)
  To: openembedded-core

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 |    2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

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..48b9b13 100644
--- a/meta/recipes-devtools/gcc/gcc-cross-canadian_4.7.bb
+++ b/meta/recipes-devtools/gcc/gcc-cross-canadian_4.7.bb
@@ -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 \
-- 
1.7.10





^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] gcc: gcc-cross-canadian: use correct location for libraries for powerpc64
  2012-07-09 22:47 [PATCH] gcc: gcc-cross-canadian: use correct location for libraries for powerpc64 Matthew McClintock
@ 2012-07-10  1:37 ` Khem Raj
  2012-07-10  1:45   ` McClintock Matthew-B29882
  0 siblings, 1 reply; 3+ messages in thread
From: Khem Raj @ 2012-07-10  1:37 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Mon, Jul 9, 2012 at 3:47 PM, Matthew McClintock <msm@freescale.com> 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 |    2 ++
>  2 files changed, 3 insertions(+), 1 deletion(-)
>
> 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..48b9b13 100644
> --- a/meta/recipes-devtools/gcc/gcc-cross-canadian_4.7.bb
> +++ b/meta/recipes-devtools/gcc/gcc-cross-canadian_4.7.bb
> @@ -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 ?



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] gcc: gcc-cross-canadian: use correct location for libraries for powerpc64
  2012-07-10  1:37 ` Khem Raj
@ 2012-07-10  1:45   ` McClintock Matthew-B29882
  0 siblings, 0 replies; 3+ messages in thread
From: McClintock Matthew-B29882 @ 2012-07-10  1:45 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Mon, Jul 9, 2012 at 8:37 PM, Khem Raj <raj.khem@gmail.com> wrote:
> On Mon, Jul 9, 2012 at 3:47 PM, Matthew McClintock <msm@freescale.com> 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 |    2 ++
>>  2 files changed, 3 insertions(+), 1 deletion(-)
>>
>> 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..48b9b13 100644
>> --- a/meta/recipes-devtools/gcc/gcc-cross-canadian_4.7.bb
>> +++ b/meta/recipes-devtools/gcc/gcc-cross-canadian_4.7.bb
>> @@ -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 ?

This seems equivalent... will respin patch.

-M

>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-07-10  1:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-09 22:47 [PATCH] gcc: gcc-cross-canadian: use correct location for libraries for powerpc64 Matthew McClintock
2012-07-10  1:37 ` Khem Raj
2012-07-10  1:45   ` McClintock Matthew-B29882

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.