[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: Compile app with uclibc and gcc mixed
From:       Denis Vlasenko <vda.linux () googlemail ! com>
Date:       2007-05-29 21:11:49
Message-ID: 200705292311.49227.vda.linux () googlemail ! com
[Download RAW message or body]

On Monday 28 May 2007 21:42, Varga-Háli Dániel wrote:
> Hi!
> 
> I have an app (Ruby) that I would like to make as small as possible. I
> managed to strip it down to 4.9MB now but I would like to below that.
> With GCC4.1.2 it is not possible. I got the 4.9MB with GCC3.4. (With
> GCC4.1.2 it was 5.1MB)
> So I thought that instead of using libstdc for all the files, I would
> like to use uclibc for some of the files that can be compiled against.
> Is there a way to do this?
> It is a Makefile project so ./configure make stuff is what it needs to be done.
> I installed uclibc and toolchain so I have i386-uclibc-linux-gcc. When
> I tried to put it into the Makefile, it failed to compile.
> Any suggestions?

Try to resolve compile errors and make it compile against uclibc.

> i386-uclibc-linux-gcc -Os  -DRUBY_EXPORT -mpreferred-stack-boundary=2 -I. \
>                 -I../ruby-1.8.6  -c ../ruby-1.8.6/missing/memcmp.c
> ../ruby-1.8.6/missing/memcmp.c: In function memcmp:
> ../ruby-1.8.6/missing/memcmp.c:8: warning: argument s1 doesnt match built-in \
> prototype

Apparently configure desided that memcmp, alloca etc are not available.
It's not true. Try to figure out why, and fix it.

Then inform uclibc and/or Ruby people about it, so that it is fixed
in next versions.
--
vda
_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic