[PATCH] some Mac OS X fixes
Devin Bayer
devin at freeshell.org
Wed Feb 22 07:18:00 UTC 2006
On Feb 21, 2006, at 2:37, Vladimir N. Oleynik wrote:
> But, have Mac OS X specified variable for Makefile?
> I think, best if added this as .ifdef for libbb/Makefile.in
Well, I don't have any provision for doing that. Whatever method you
choose, just please make it automatic. I don't want to have to
configure something to make compilation work on OS X.
It would be best if it would be a CONFIG setting so that then applets
could depend upon !CONFIG_MACOSX or depend upon CONFIG_GNUC and
CONFIG_LINUX. But I don't know how you want to make the configure
system automatically detect the platform. Probably you'll want to
make it also detect the C library, so probably something like "echo |
cpp -dM | grep APPLE" because then you can also detect glibc/uclibc
in the same fashion.
Also, if you're interested in my uname output:
Darwin HeyZues.local 8.4.0 Darwin Kernel Version 8.4.0: Tue Jan 3
18:22:10 PST 2006; root:xnu-792.6.56.obj~1/RELEASE_PPC Power
Macintosh powerpc
Basically, just look for the "Darwin" word, since Mac OS X also
exists on x86. GCC also seems to like to call me powerpc-apple-darwin8.
Best Regards,
Devin Bayer
More information about the busybox
mailing list