[Buildroot] [PATCH] New package: zxing
Frank Hunleth
fhunleth at troodon-software.com
Sun Mar 25 20:48:12 UTC 2012
On Sun, Mar 25, 2012 at 2:55 PM, Arnout Vandecappelle <arnout at mind.be> wrote:
> On Tuesday 20 March 2012 01:56:49 Frank Hunleth wrote:
>
> [snip]
>> +diff --git a/cpp/SConscript b/cpp/SConscript
>> +index 51c191d..584ae17 100644
>> +--- a/cpp/SConscript
>> ++++ b/cpp/SConscript
>> +@@ -8,6 +8,12 @@ vars = Variables()
>> + vars.Add(BoolVariable('DEBUG', 'Set to disable optimizations', 1))
>> + vars.Add(BoolVariable('PIC', 'Set to 1 for to always generate PIC code', 0))
>> + env = Environment(variables = vars)
>> ++
>> ++TARGET_CROSS = ARGUMENTS.get('TARGET_CROSS', '')
>> ++env.Replace(CXX = TARGET_CROSS + 'gcc')
>> ++env.Replace(AR = TARGET_CROSS + 'ar')
>> ++env.Replace(RANLIB = TARGET_CROSS + 'ranlib')
>
> It's a pity that scons doesn't provide a way to put things in the
> environment from the command line. Well, probably it does provide
> a way to do that but I couldn't find it either :-)
Completely agree. I looked and looked. I couldn't find anything either
and what I did find led me to the above patch.
> Would it help to use buildroot's host-scons rather than the
> packaged scons?
That was the approach that I was originally going to take, and then I
got worried about there being any differences between host-scons and
the packaged scons. I assume that they packaged scons with their
release for a reason. Maybe it was just for convenience, but I wasn't
sure. Not having used scons before, it using their packaged version
seemed like the *safe* approach.
Thanks,
Frank
>
> Regards,
> Arnout
>
> --
> Arnout Vandecappelle arnout at mind be
> Senior Embedded Software Architect +32-16-286540
> Essensium/Mind http://www.mind.be
> G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
> LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
> GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
More information about the buildroot
mailing list