[uClibc] changes for macosx host (armeb target)

Philip Rakity prakity at yahoo.com
Wed Dec 22 02:34:11 UTC 2004

Working !! === just build 802 wireless driver using c
and c++

Cool --


Changes to make armeb buildroot tools work on macosx

Note I used latest gcc and binutils options in make
gcc 3.4.3
c and c++ enabled (both seem to work)
extfs file system (target option OFF)

a) changed uClibc/Makefile
.PHONY: utils
ifeq ($(strip $(HAVE_SHARED)),y)
utils: dummy
#     $(MAKE) CROSS=$(CROSS) CC=$(CC) -C utils
utils: dummy

(cannot compile ldd on mac since no features.h)

b) In genext2fs directory
Added getline.c and getline. h (from openbsd) to 
genext2fs directory to allow code to compile.  

getline is a  non-standard C function and not
available on the mac

Changed Makefile to getline
SRC+= getline.c
OBJS=$(patsubst %.c,%.o, $(SRC))

Change to stop mac LD complaining about duplicate -o

genext2fs: $(OBJS)
#       $(CC) $(CFLAGS) -o $@ $(OBJS) -o $@.o
        $(CC) $(CFLAGS)  $(OBJS) -o $@

Executable will fail (obvious) since cannot generate
ext file
system on macos  

=== turn off extfs in make menuconfig is work around

Do you Yahoo!? 
The all-new My Yahoo! - What will yours do?

More information about the uClibc mailing list