From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.windriver.com ([147.11.1.11]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1SmkEj-0001LB-GY for openembedded-core@lists.openembedded.org; Thu, 05 Jul 2012 13:28:41 +0200 Received: from ALA-HCA.corp.ad.wrs.com (ala-hca [147.11.189.40]) by mail.windriver.com (8.14.3/8.14.3) with ESMTP id q65BHWKx016677 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Thu, 5 Jul 2012 04:17:33 -0700 (PDT) Received: from [128.224.162.231] (128.224.162.231) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.1.255.0; Thu, 5 Jul 2012 04:17:32 -0700 Message-ID: <4FF577CC.3040205@windriver.com> Date: Thu, 5 Jul 2012 19:17:32 +0800 From: Pascal Ouyang User-Agent: Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 To: Khem Raj References: <1340262834-27560-1-git-send-email-xin.ouyang@windriver.com> <4FEC0EC7.6050800@windriver.com> <4FEC807C.1040803@gmail.com> In-Reply-To: <4FEC807C.1040803@gmail.com> X-MIME-Autoconverted: from 8bit to quoted-printable by mail.windriver.com id q65BHWKx016677 Cc: Patches and discussions about the oe-core layer Subject: Re: [PATCH] cpan.bbclass: Fix CCFLAGS. X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Patches and discussions about the oe-core layer List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jul 2012 11:28:41 -0000 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable On 2012=E5=B9=B406=E6=9C=8829=E6=97=A5 00:04, Khem Raj wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 6/28/2012 12:59 AM, Pascal Ouyang wrote: >> On 2012=E5=B9=B406=E6=9C=8821=E6=97=A5 23:47, Khem Raj wrote: >>> On Thu, Jun 21, 2012 at 12:13 AM, >>> wrote: >>>> From: Xin Ouyang >>>> >>>> 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=3D19;bug=3D628522 >>> >> This debian patch takes no effect. >> >> Actually it try to fix this: >> >> Some packages which has those lines in Makefile.PL: WriteMakefile( >> ... 'CCFLAGS' =3D> 'some cflags', ... ); While run perl >> Makefile.PL to configure, there are CCFLAGS=3D"some cflags" to >> override the original CCFLAGS=3D$Config{ccflags} in generated >> Makefiles. >> >> >> In Poky, CCFLAGS in our generated Makefiles are all right. But when >> we run oe_runmake CCFLAGS=3D"${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,=20 tested libtext-iconv-perl and libnet-libidn-perl) would fail in running=20 time on the 32bit X86 machines with current cpan.bbclass. And the root cause is CCFLAGS=3D"${CFLAGS}" passed to oe_runmake has=20 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++ > =3DMWVl > -----END PGP SIGNATURE----- > --=20 - Pascal