[uClibc]how to totally compile a hello.c using uclibc instead of stdlib

ZENG Pengcheng zeng_pengcheng at anyka.com.cn
Sat Apr 26 06:19:50 UTC 2003


Hi all,
 
         Now I have the source code of microwindows ( version is
0.89pre9, download from ftp.microwindows.org
<ftp://ftp.microwindows.org/> ), it use stdlibc.
 
         And now I want to use uclibc instead of stdlibc, I edit the
Arch.rules file mainly like this:
 
         COMPILER = /uClibc-0.9.19/extra/gcc-uClibc/i386-uclibc-gcc
         CFLAGS += --uclibc-use-build-dir ¨CWall $(OPTIMATION)
         LDFLAGS += --uclibc-use-build-dir ¨Cs -Wl,-warn-common
         #the above flags reference to the ../test/Rules.mak of uclibc
         LDFLAGS += -static
 
         With this config, it can generate most of demos, but some
failed because of the errors such as ¡°no reference to ¡®hypot¡¯ ¡°,
¡°no reference to ¡®rint¡¯¡± and ¡°no reference to ¡®expft¡¯¡±, and the
generated demos also can run pretty well.
 
         Thought the final size of libs generated by makeing microwin
with uclibc(in my view) is different from that with stdlib, I still have
some doubt about whether it is a correct method to totally switchover
stdlib for uclibc.
 
         Would anybody give a hint whether I do have the microwindows
totally reference to uclibc instead of stdlibc?
 
         If u have not do any research on microwin, maybe u also give me
some hints how to totally compile a hello.c using uclibc instead of
stdlib :-)
 
         Thanks in advance.
 
Best regards,
 
Pengcheng zeng
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/uclibc/attachments/20030426/c46e456c/attachment-0001.htm 


More information about the uClibc mailing list