[OE-core] [PATCH] cpan.bbclass: Fix CCFLAGS.

Pascal Ouyang xin.ouyang at windriver.com
Fri Jul 6 05:33:20 UTC 2012


On 2012年07月05日 22:57, Khem Raj wrote:
> On Thu, Jul 5, 2012 at 4:17 AM, Pascal Ouyang <xin.ouyang at 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






More information about the Openembedded-core mailing list