[Toybox] [PATCH] toybox compiled on OS X 10.6
Rob Landley
rob at landley.net
Mon Mar 5 09:18:39 PST 2012
On 02/28/2012 06:10 AM, Georgi Chorbadzhiyski wrote:
> Around 02/28/2012 02:09 PM, Georgi Chorbadzhiyski scribbled:
>> Apparently I have too much free time on my hands, so with the attached patches
>> I'm able to compile toybox with allyesconfig on OS X 10.6.
I need to take a closer look at this, but I do note that
lib/portability.h has an apple #ifdef in there already (and in theory
should be able to handle big/little endian stuff in that context,
although now they've deprecated powerpc I think everything they're doing
is little endian. Still, lots of network stuff is big endian so they'll
need the byteswaps anyway.)
Any target-specific complexity we can hide in lib/portability.h (such as
what function implements fdprintf) is probably worth doing. Similarly,
adding an "is this macosx" probe to scripts/genconfig.sh and outputting
Config.probed glue appropriately would also be worth doing.
> ...
>
> Well I'm able but using make SED=gsed
I wrote about 80% of the busybox version of sed, and the next _big_
command I'm trying to tackle over here is a toybox version of sed.
What I'd like to be able to do is get toybox to detect that the host sed
isn't usable (similar to the unshare probe) and if so build its' own and
use that. ("generated/sed" works for me. :)
I'd like to make building on macosx be transparent, so it just works
instead of having to specify things. Unfortunately, I don't have a test
environment for it...
I'll try to do a more detailed review of your macosx patches this evening.
Thanks,
Rob
More information about the Toybox
mailing list