Hi Raphaël,

I do know that there are a couple of embedded systems experts around  
and they may help us out here.

Ajo, Gorka: some idea? :-)


On 10 Mar 2008, at 18:33, Raphaël HUCK wrote:

>>> In case it can help someone, here is the configuration I've used:
>>>
>>>     ac_cv_func_malloc_0_nonnull=yes \
>>>     ac_cv_func_realloc_0_nonnull=yes \
>>>     ./configure \
>>>     --host=mips-linux \
>>>     --with-wwwroot=/var/www-docroot \
>>>     --enable-static \
>>>     --enable-shared=no \
>>>     --enable-static-module=fcgi,file,round_robin \
>>>     --disable-pthread \
>>>     --disable-readdir_r \
>>>     --disable-tls \
>>>     --disable-ipv6 \
>>>     --disable-pam \
>>>     --disable-largefile;
>>>
>>> With these 3 modules compiled, cherokee takes 310508 bytes once
>>> stripped.
>>>
>>> Is it possible to reduce the size even more?
>>
>> Well, I would try to use the system libraries rather than creating a
>> completely static binary (by removing: --enable-static --enable-
>> shared=no). That should help.
>
> When I remove --enable-static --enable-shared=no I get the error I was
> reporting at the beginning:
>
> (the error occurs in the cget directory)
>
> mips-linux-uclibc-gcc -g -O2 -o .libs/cget main.o
> proxy.o  ../cherokee/.libs/libcherokee-client.so -ldl
>
> mips-linux-uclibc/bin/ld:
> warning: libcherokee-base.so.0, needed
> by ../cherokee/.libs/libcherokee-client.so, not found (try using - 
> rpath
> or -rpath-link)
>
>
> so I did this by hand (added ../cherokee/.libs/libcherokee-base.so):
>
> mips-linux-uclibc-gcc -g -O2 -o .libs/cget main.o
> proxy.o  ../cherokee/.libs/libcherokee-client.so ../cherokee/.libs/ 
> libcherokee-base.so
> -ldl
>
> which is equivalent to changing
>
> /bin/sh ../libtool --tag=CC --mode=link mips-linux-uclibc-gcc -g -O2  
> -o
> cget  main.o proxy.o   ../cherokee/libcherokee-client.la -ldl
>
> into
>
> /bin/sh ../libtool --tag=CC --mode=link mips-linux-uclibc-gcc -g -O2  
> -o
> cget  main.o
> proxy.o   ../cherokee/libcherokee-client.la ../cherokee/libcherokee- 
> base.la
> -ldl
>
> and it compiles fine.
>
>
> It seems to be even bigger with those configure options though:
>
> 10040 bytes (cherokee) + 141616 bytes (libcherokee-server) +
> 209516 bytes (libcherokee-base) = 361172 bytes
>
> which is bigger than 310508 bytes when compiled statically :(

--
Greetings, alo.

_______________________________________________
Cherokee mailing list
[email protected]
http://cherokee-project.com/cgi-bin/mailman/listinfo/cherokee

Reply via email to