Patchwork [v2] cpan_build.bbclass; added cc and ld flags to the perl Build.PL invocation

login
register
mail settings
Submitter Frans Meulenbroeks
Date Dec. 27, 2010, 8:46 a.m.
Message ID <AANLkTini4GZx5bs86WWS=SmrhsCSTdYPzg9pPVpMpd2c@mail.gmail.com>
Download mbox | patch
Permalink /patch/132/
State Superseded
Headers show

Comments

Frans Meulenbroeks - Dec. 27, 2010, 8:46 a.m.
2010/12/27 Khem Raj <raj.khem@gmail.com>:
> On 12/26/2010 1:38 PM, Frans Meulenbroeks wrote:
>>
>> Without these gcc would be used which resolves to /usr/bin/gcc
>> and one gets an intel exe.
>> This showed up with libparams-validate-perl and libdatetime-perl
>> The LDFLAGS are added to resolve the GNU_HASH QA error
>>
>> Signed-off-by: Frans Meulenbroeks<fransmeulenbroeks@gmail.com>
>
> Why a new dir called poky ?

I goofed. Sry.

The patch only aimed to contain the following:

                       --install_path arch="${libdir}/perl5" \

Thought I'd verified the patch with git log -p but apparently I didn't
look carefully enough.
No idea how that poky file ended up in my tree at all.
Will resubmit.

Frans.

Patch

diff --git a/classes/cpan_build.bbclass b/classes/cpan_build.bbclass
index d1bbc4f..070e061 100644
--- a/classes/cpan_build.bbclass
+++ b/classes/cpan_build.bbclass
@@ -26,6 +26,7 @@  cpan_build_do_configure () {
               # build for target
               . ${STAGING_LIBDIR}/perl/config.sh
               perl Build.PL --installdirs vendor \
+                       --config cc="${CC} ${LDFLAGS}" --config
ld="${CCLD} ${LDFLAGS}" \
                       --destdir ${D} \
                       --install_path lib="${datadir}/perl5" \