All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cpan.bbclass: Fix CCFLAGS.
@ 2012-06-21  7:13 xin.ouyang
  2012-06-21 15:47 ` Khem Raj
  2012-07-17 16:16 ` Saul Wold
  0 siblings, 2 replies; 11+ messages in thread
From: xin.ouyang @ 2012-06-21  7:13 UTC (permalink / raw)
  To: openembedded-core

From: Xin Ouyang <Xin.Ouyang@windriver.com>

We should not just replace CCFLAGS with CFLAGS while compiling, because 
this may cause run-time errors with perl's DynaLoader.pm.

Tested on qemux86 with new libnet-libidn-perl bb recipe:

root@qemux86:~# perl -e "use Net::LibIDN"
Not a CODE reference at /usr/lib/perl/5.14.2//DynaLoader.pm line 213.
END failed--call queue aborted at /usr/lib/perl/vendor_perl/5.14.2//Net/LibIDN.pm line 213.
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.

Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
---
 meta/classes/cpan.bbclass |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/meta/classes/cpan.bbclass b/meta/classes/cpan.bbclass
index 2e9432c..957a6e2 100644
--- a/meta/classes/cpan.bbclass
+++ b/meta/classes/cpan.bbclass
@@ -26,13 +26,14 @@ cpan_do_configure () {
 			test -f $f2 || continue
 			sed -i -e "s:\(PERL_ARCHLIB = \).*:\1${PERL_ARCHLIB}:" \
 				-e 's/perl.real/perl/' \
+				-e "s/^\(CCFLAGS =.*\)/\1 ${CFLAGS}/" \
 				$f2
 		done
 	fi
 }
 
 cpan_do_compile () {
-	oe_runmake PASTHRU_INC="${CFLAGS}" CCFLAGS="${CFLAGS}" LD="${CCLD}"
+	oe_runmake PASTHRU_INC="${CFLAGS}" LD="${CCLD}"
 }
 
 cpan_do_install () {
-- 
1.7.5.4




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

* Re: [PATCH] cpan.bbclass: Fix CCFLAGS.
  2012-06-21  7:13 [PATCH] cpan.bbclass: Fix CCFLAGS xin.ouyang
@ 2012-06-21 15:47 ` Khem Raj
  2012-06-28  7:59   ` Pascal Ouyang
  2012-07-17 16:16 ` Saul Wold
  1 sibling, 1 reply; 11+ messages in thread
From: Khem Raj @ 2012-06-21 15:47 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Thu, Jun 21, 2012 at 12:13 AM,  <xin.ouyang@windriver.com> wrote:
> From: Xin Ouyang <Xin.Ouyang@windriver.com>
>
> We should not just replace CCFLAGS with CFLAGS while compiling, because
> this may cause run-time errors with perl's DynaLoader.pm.
>
> Tested on qemux86 with new libnet-libidn-perl bb recipe:

can you instead try the patch from

http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=19;bug=628522

>
> root@qemux86:~# perl -e "use Net::LibIDN"
> Not a CODE reference at /usr/lib/perl/5.14.2//DynaLoader.pm line 213.
> END failed--call queue aborted at /usr/lib/perl/vendor_perl/5.14.2//Net/LibIDN.pm line 213.
> Compilation failed in require at -e line 1.
> BEGIN failed--compilation aborted at -e line 1.
>
> Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
> ---
>  meta/classes/cpan.bbclass |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/meta/classes/cpan.bbclass b/meta/classes/cpan.bbclass
> index 2e9432c..957a6e2 100644
> --- a/meta/classes/cpan.bbclass
> +++ b/meta/classes/cpan.bbclass
> @@ -26,13 +26,14 @@ cpan_do_configure () {
>                        test -f $f2 || continue
>                        sed -i -e "s:\(PERL_ARCHLIB = \).*:\1${PERL_ARCHLIB}:" \
>                                -e 's/perl.real/perl/' \
> +                               -e "s/^\(CCFLAGS =.*\)/\1 ${CFLAGS}/" \
>                                $f2
>                done
>        fi
>  }
>
>  cpan_do_compile () {
> -       oe_runmake PASTHRU_INC="${CFLAGS}" CCFLAGS="${CFLAGS}" LD="${CCLD}"
> +       oe_runmake PASTHRU_INC="${CFLAGS}" LD="${CCLD}"
>  }
>
>  cpan_do_install () {
> --
> 1.7.5.4
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core



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

* Re: [PATCH] cpan.bbclass: Fix CCFLAGS.
  2012-06-21 15:47 ` Khem Raj
@ 2012-06-28  7:59   ` Pascal Ouyang
  2012-06-28 16:04     ` Khem Raj
  0 siblings, 1 reply; 11+ messages in thread
From: Pascal Ouyang @ 2012-06-28  7:59 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On 2012年06月21日 23:47, Khem Raj wrote:
> On Thu, Jun 21, 2012 at 12:13 AM,  <xin.ouyang@windriver.com> wrote:
>> From: Xin Ouyang <Xin.Ouyang@windriver.com>
>>
>> We should not just replace CCFLAGS with CFLAGS while compiling, because
>> this may cause run-time errors with perl's DynaLoader.pm.
>>
>> Tested on qemux86 with new libnet-libidn-perl bb recipe:
>
> can you instead try the patch from
>
> http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=19;bug=628522
>
This debian patch takes no effect.

Actually it try to fix this:

Some packages which has those lines in Makefile.PL:
   WriteMakefile(
       ...
       'CCFLAGS'    => 'some cflags',
       ...
   );
While run perl Makefile.PL to configure, there are CCFLAGS="some cflags" 
to override the original CCFLAGS=$Config{ccflags} in generated Makefiles.


In Poky, CCFLAGS in our generated Makefiles are all right.
But when we run oe_runmake CCFLAGS="${CFLAGS}" to do_compile, this will 
override our right CCFLAGS.


- Xin

>>
>> root@qemux86:~# perl -e "use Net::LibIDN"
>> Not a CODE reference at /usr/lib/perl/5.14.2//DynaLoader.pm line 213.
>> END failed--call queue aborted at /usr/lib/perl/vendor_perl/5.14.2//Net/LibIDN.pm line 213.
>> Compilation failed in require at -e line 1.
>> BEGIN failed--compilation aborted at -e line 1.
>>
>> Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
>> ---
>>   meta/classes/cpan.bbclass |    3 ++-
>>   1 files changed, 2 insertions(+), 1 deletions(-)
>>
>> diff --git a/meta/classes/cpan.bbclass b/meta/classes/cpan.bbclass
>> index 2e9432c..957a6e2 100644
>> --- a/meta/classes/cpan.bbclass
>> +++ b/meta/classes/cpan.bbclass
>> @@ -26,13 +26,14 @@ cpan_do_configure () {
>>                         test -f $f2 || continue
>>                         sed -i -e "s:\(PERL_ARCHLIB = \).*:\1${PERL_ARCHLIB}:" \
>>                                 -e 's/perl.real/perl/' \
>> +                               -e "s/^\(CCFLAGS =.*\)/\1 ${CFLAGS}/" \
>>                                 $f2
>>                 done
>>         fi
>>   }
>>
>>   cpan_do_compile () {
>> -       oe_runmake PASTHRU_INC="${CFLAGS}" CCFLAGS="${CFLAGS}" LD="${CCLD}"
>> +       oe_runmake PASTHRU_INC="${CFLAGS}" LD="${CCLD}"
>>   }
>>
>>   cpan_do_install () {
>> --
>> 1.7.5.4
>>
>>
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>


-- 
- Pascal





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

* Re: [PATCH] cpan.bbclass: Fix CCFLAGS.
  2012-06-28  7:59   ` Pascal Ouyang
@ 2012-06-28 16:04     ` Khem Raj
  2012-07-02  7:54       ` Pascal Ouyang
  2012-07-05 11:17       ` Pascal Ouyang
  0 siblings, 2 replies; 11+ messages in thread
From: Khem Raj @ 2012-06-28 16:04 UTC (permalink / raw)
  To: Pascal Ouyang; +Cc: Patches and discussions about the oe-core layer

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 6/28/2012 12:59 AM, Pascal Ouyang wrote:
> On 2012年06月21日 23:47, Khem Raj wrote:
>> On Thu, Jun 21, 2012 at 12:13 AM,  <xin.ouyang@windriver.com>
>> wrote:
>>> From: Xin Ouyang <Xin.Ouyang@windriver.com>
>>> 
>>> We should not just replace CCFLAGS with CFLAGS while compiling,
>>> because this may cause run-time errors with perl's
>>> DynaLoader.pm.
>>> 
>>> Tested on qemux86 with new libnet-libidn-perl bb recipe:
>> 
>> can you instead try the patch from
>> 
>> http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=19;bug=628522
>> 
> This debian patch takes no effect.
> 
> Actually it try to fix this:
> 
> Some packages which has those lines in Makefile.PL: WriteMakefile( 
> ... 'CCFLAGS'    => 'some cflags', ... ); While run perl
> Makefile.PL to configure, there are CCFLAGS="some cflags" to
> override the original CCFLAGS=$Config{ccflags} in generated
> Makefiles.
> 
> 
> In Poky, CCFLAGS in our generated Makefiles are all right. But when
> we run oe_runmake CCFLAGS="${CFLAGS}" to do_compile, this will 
> override our right CCFLAGS.

but thats what assign operator is meant to do isnt it ?


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/sgHwACgkQuwUzVZGdMxSvoACdHtcMLShjJIglhq/KXuE73QIW
7FsAoI/IFxzDXZWX/xLj3tNkDDzdUM++
=MWVl
-----END PGP SIGNATURE-----



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

* Re: [PATCH] cpan.bbclass: Fix CCFLAGS.
  2012-06-28 16:04     ` Khem Raj
@ 2012-07-02  7:54       ` Pascal Ouyang
  2012-07-05 11:17       ` Pascal Ouyang
  1 sibling, 0 replies; 11+ messages in thread
From: Pascal Ouyang @ 2012-07-02  7:54 UTC (permalink / raw)
  To: Khem Raj; +Cc: Patches and discussions about the oe-core layer

On 2012年06月29日 00:04, Khem Raj wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 6/28/2012 12:59 AM, Pascal Ouyang wrote:
>> On 2012年06月21日 23:47, Khem Raj wrote:
>>> On Thu, Jun 21, 2012 at 12:13 AM,  <xin.ouyang@windriver.com>
>>> wrote:
>>>> From: Xin Ouyang <Xin.Ouyang@windriver.com>
>>>>
>>>> We should not just replace CCFLAGS with CFLAGS while compiling,
>>>> because this may cause run-time errors with perl's
>>>> DynaLoader.pm.
>>>>
>>>> Tested on qemux86 with new libnet-libidn-perl bb recipe:
>>>
>>> can you instead try the patch from
>>>
>>> http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=19;bug=628522
>>>
>> This debian patch takes no effect.
>>
>> Actually it try to fix this:
>>
>> Some packages which has those lines in Makefile.PL: WriteMakefile(
>> ... 'CCFLAGS'    => 'some cflags', ... ); While run perl
>> Makefile.PL to configure, there are CCFLAGS="some cflags" to
>> override the original CCFLAGS=$Config{ccflags} in generated
>> Makefiles.
>>
>>
>> In Poky, CCFLAGS in our generated Makefiles are all right. But when
>> we run oe_runmake CCFLAGS="${CFLAGS}" to do_compile, this will
>> override our right CCFLAGS.
>
> but thats what assign operator is meant to do isnt it ?
>

But CCFLAGS cannot be overrided by CFLAGS, because original CCFLAGS has 
some -DXXX flags read from the config for perl.
Without these compile flags, the perl modules cannot run correctly.

root@qemux86:~# perl -e "use Net::LibIDN"
...
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.

-P

>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.12 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk/sgHwACgkQuwUzVZGdMxSvoACdHtcMLShjJIglhq/KXuE73QIW
> 7FsAoI/IFxzDXZWX/xLj3tNkDDzdUM++
> =MWVl
> -----END PGP SIGNATURE-----
>


-- 
- Pascal





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

* Re: [PATCH] cpan.bbclass: Fix CCFLAGS.
  2012-06-28 16:04     ` Khem Raj
  2012-07-02  7:54       ` Pascal Ouyang
@ 2012-07-05 11:17       ` Pascal Ouyang
  2012-07-05 14:57         ` Khem Raj
  1 sibling, 1 reply; 11+ messages in thread
From: Pascal Ouyang @ 2012-07-05 11:17 UTC (permalink / raw)
  To: Khem Raj; +Cc: Patches and discussions about the oe-core layer

On 2012年06月29日 00:04, Khem Raj wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 6/28/2012 12:59 AM, Pascal Ouyang wrote:
>> On 2012年06月21日 23:47, Khem Raj wrote:
>>> On Thu, Jun 21, 2012 at 12:13 AM,  <xin.ouyang@windriver.com>
>>> wrote:
>>>> From: Xin Ouyang <Xin.Ouyang@windriver.com>
>>>>
>>>> We should not just replace CCFLAGS with CFLAGS while compiling,
>>>> because this may cause run-time errors with perl's
>>>> DynaLoader.pm.
>>>>
>>>> Tested on qemux86 with new libnet-libidn-perl bb recipe:
>>>
>>> can you instead try the patch from
>>>
>>> http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=19;bug=628522
>>>
>> This debian patch takes no effect.
>>
>> Actually it try to fix this:
>>
>> Some packages which has those lines in Makefile.PL: WriteMakefile(
>> ... 'CCFLAGS'    => 'some cflags', ... ); While run perl
>> Makefile.PL to configure, there are CCFLAGS="some cflags" to
>> override the original CCFLAGS=$Config{ccflags} in generated
>> Makefiles.
>>
>>
>> In Poky, CCFLAGS in our generated Makefiles are all right. But when
>> we run oe_runmake CCFLAGS="${CFLAGS}" to do_compile, this will
>> override our right CCFLAGS.
>
> but thats what assign operator is meant to do isnt it ?
>

Hi Raj,

This is indeed a bug, because all non-pure perl modules(with C codes, 
tested libtext-iconv-perl and libnet-libidn-perl) would fail in running 
time on the 32bit X86 machines with current cpan.bbclass.
And the root cause is CCFLAGS="${CFLAGS}" passed to oe_runmake has 
overrided the CCFLAGS in Makefile.

So, I still don't know what is your opinion of this patch.
Thanks.

- Pascal

>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.12 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk/sgHwACgkQuwUzVZGdMxSvoACdHtcMLShjJIglhq/KXuE73QIW
> 7FsAoI/IFxzDXZWX/xLj3tNkDDzdUM++
> =MWVl
> -----END PGP SIGNATURE-----
>


-- 
- Pascal





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

* Re: [PATCH] cpan.bbclass: Fix CCFLAGS.
  2012-07-05 11:17       ` Pascal Ouyang
@ 2012-07-05 14:57         ` Khem Raj
  2012-07-06  5:33           ` Pascal Ouyang
  0 siblings, 1 reply; 11+ messages in thread
From: Khem Raj @ 2012-07-05 14:57 UTC (permalink / raw)
  To: Pascal Ouyang; +Cc: Patches and discussions about the oe-core layer

On Thu, Jul 5, 2012 at 4:17 AM, Pascal Ouyang <xin.ouyang@windriver.com> wrote:
>
> So, I still don't know what is your opinion of this patch.

I think we still need the CC and CFLAGS to appear in CCFLAGS since
they sometimes decide ABI etc. that we use and without that
the modules will be incompatible. So may be
appending to CCFLAGS would work instead



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

* Re: [PATCH] cpan.bbclass: Fix CCFLAGS.
  2012-07-05 14:57         ` Khem Raj
@ 2012-07-06  5:33           ` Pascal Ouyang
  2012-07-06  5:39             ` Khem Raj
  0 siblings, 1 reply; 11+ messages in thread
From: Pascal Ouyang @ 2012-07-06  5:33 UTC (permalink / raw)
  To: Khem Raj; +Cc: Patches and discussions about the oe-core layer

On 2012年07月05日 22:57, Khem Raj wrote:
> On Thu, Jul 5, 2012 at 4:17 AM, Pascal Ouyang <xin.ouyang@windriver.com> wrote:
>>
>> So, I still don't know what is your opinion of this patch.
>
> I think we still need the CC and CFLAGS to appear in CCFLAGS since
> they sometimes decide ABI etc. that we use and without that
> the modules will be incompatible. So may be
> appending to CCFLAGS would work instead
>

Exactly in my patch, this just appends CFLAGS to CCFLAGS.

@@ -26,13 +26,14 @@ cpan_do_configure () {
  			test -f $f2 || continue
  			sed -i -e "s:\(PERL_ARCHLIB = \).*:\1${PERL_ARCHLIB}:" \
  				-e 's/perl.real/perl/' \
+				-e "s/^\(CCFLAGS =.*\)/\1 ${CFLAGS}/" \
  				$f2
  		done
  	fi
  }

Thanks.
-- 
- Pascal





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

* Re: [PATCH] cpan.bbclass: Fix CCFLAGS.
  2012-07-06  5:33           ` Pascal Ouyang
@ 2012-07-06  5:39             ` Khem Raj
  2012-07-12  6:46               ` Pascal Ouyang
  0 siblings, 1 reply; 11+ messages in thread
From: Khem Raj @ 2012-07-06  5:39 UTC (permalink / raw)
  To: Pascal Ouyang; +Cc: Patches and discussions about the oe-core layer

On Thu, Jul 5, 2012 at 10:33 PM, Pascal Ouyang <xin.ouyang@windriver.com> wrote:
> On 2012年07月05日 22:57, Khem Raj wrote:
>>
>> On Thu, Jul 5, 2012 at 4:17 AM, Pascal Ouyang <xin.ouyang@windriver.com>
>> wrote:
>>>
>>>
>>> So, I still don't know what is your opinion of this patch.
>>
>>
>> I think we still need the CC and CFLAGS to appear in CCFLAGS since
>> they sometimes decide ABI etc. that we use and without that
>> the modules will be incompatible. So may be
>> appending to CCFLAGS would work instead
>>
>
> Exactly in my patch, this just appends CFLAGS to CCFLAGS.
>

seems ok I guess

>
> @@ -26,13 +26,14 @@ cpan_do_configure () {
>                         test -f $f2 || continue
>                         sed -i -e "s:\(PERL_ARCHLIB =
> \).*:\1${PERL_ARCHLIB}:" \
>                                 -e 's/perl.real/perl/' \
> +                               -e "s/^\(CCFLAGS =.*\)/\1 ${CFLAGS}/" \
>                                 $f2
>                 done
>         fi
>  }
>
> Thanks.
> --
> - Pascal
>
>



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

* Re: [PATCH] cpan.bbclass: Fix CCFLAGS.
  2012-07-06  5:39             ` Khem Raj
@ 2012-07-12  6:46               ` Pascal Ouyang
  0 siblings, 0 replies; 11+ messages in thread
From: Pascal Ouyang @ 2012-07-12  6:46 UTC (permalink / raw)
  To: Saul Wold; +Cc: layer, Patches

Hi Saul,

I have sent this patch for a while. Please merge this if no objections. 
Thanks.

- Pascal

On 2012年07月06日 13:39, Khem Raj wrote:
> On Thu, Jul 5, 2012 at 10:33 PM, Pascal Ouyang <xin.ouyang@windriver.com> wrote:
>> On 2012年07月05日 22:57, Khem Raj wrote:
>>>
>>> On Thu, Jul 5, 2012 at 4:17 AM, Pascal Ouyang <xin.ouyang@windriver.com>
>>> wrote:
>>>>
>>>>
>>>> So, I still don't know what is your opinion of this patch.
>>>
>>>
>>> I think we still need the CC and CFLAGS to appear in CCFLAGS since
>>> they sometimes decide ABI etc. that we use and without that
>>> the modules will be incompatible. So may be
>>> appending to CCFLAGS would work instead
>>>
>>
>> Exactly in my patch, this just appends CFLAGS to CCFLAGS.
>>
>
> seems ok I guess
>
>>
>> @@ -26,13 +26,14 @@ cpan_do_configure () {
>>                          test -f $f2 || continue
>>                          sed -i -e "s:\(PERL_ARCHLIB =
>> \).*:\1${PERL_ARCHLIB}:" \
>>                                  -e 's/perl.real/perl/' \
>> +                               -e "s/^\(CCFLAGS =.*\)/\1 ${CFLAGS}/" \
>>                                  $f2
>>                  done
>>          fi
>>   }
>>
>> Thanks.
>> --
>> - Pascal
>>
>>


-- 
- Pascal





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

* Re: [PATCH] cpan.bbclass: Fix CCFLAGS.
  2012-06-21  7:13 [PATCH] cpan.bbclass: Fix CCFLAGS xin.ouyang
  2012-06-21 15:47 ` Khem Raj
@ 2012-07-17 16:16 ` Saul Wold
  1 sibling, 0 replies; 11+ messages in thread
From: Saul Wold @ 2012-07-17 16:16 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On 06/21/2012 12:13 AM, xin.ouyang@windriver.com wrote:
> From: Xin Ouyang <Xin.Ouyang@windriver.com>
>
> We should not just replace CCFLAGS with CFLAGS while compiling, because
> this may cause run-time errors with perl's DynaLoader.pm.
>
> Tested on qemux86 with new libnet-libidn-perl bb recipe:
>
> root@qemux86:~# perl -e "use Net::LibIDN"
> Not a CODE reference at /usr/lib/perl/5.14.2//DynaLoader.pm line 213.
> END failed--call queue aborted at /usr/lib/perl/vendor_perl/5.14.2//Net/LibIDN.pm line 213.
> Compilation failed in require at -e line 1.
> BEGIN failed--compilation aborted at -e line 1.
>
> Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
> ---
>   meta/classes/cpan.bbclass |    3 ++-
>   1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/meta/classes/cpan.bbclass b/meta/classes/cpan.bbclass
> index 2e9432c..957a6e2 100644
> --- a/meta/classes/cpan.bbclass
> +++ b/meta/classes/cpan.bbclass
> @@ -26,13 +26,14 @@ cpan_do_configure () {
>   			test -f $f2 || continue
>   			sed -i -e "s:\(PERL_ARCHLIB = \).*:\1${PERL_ARCHLIB}:" \
>   				-e 's/perl.real/perl/' \
> +				-e "s/^\(CCFLAGS =.*\)/\1 ${CFLAGS}/" \
>   				$f2
>   		done
>   	fi
>   }
>
>   cpan_do_compile () {
> -	oe_runmake PASTHRU_INC="${CFLAGS}" CCFLAGS="${CFLAGS}" LD="${CCLD}"
> +	oe_runmake PASTHRU_INC="${CFLAGS}" LD="${CCLD}"
>   }
>
>   cpan_do_install () {
>

Merged into OE-Core

Thanks
	Sau!



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

end of thread, other threads:[~2012-07-17 16:27 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-21  7:13 [PATCH] cpan.bbclass: Fix CCFLAGS xin.ouyang
2012-06-21 15:47 ` Khem Raj
2012-06-28  7:59   ` Pascal Ouyang
2012-06-28 16:04     ` Khem Raj
2012-07-02  7:54       ` Pascal Ouyang
2012-07-05 11:17       ` Pascal Ouyang
2012-07-05 14:57         ` Khem Raj
2012-07-06  5:33           ` Pascal Ouyang
2012-07-06  5:39             ` Khem Raj
2012-07-12  6:46               ` Pascal Ouyang
2012-07-17 16:16 ` Saul Wold

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.