[Klone-users] Size of kloned
Steven Van Ingelgem
steven at vaningelgem.be
Thu Aug 21 15:58:53 EDT 2008
I have an issue again with this disabling of OpenSSL...
I am cross compiling, but klone seems to be taking my host system include
directory.
you can easily check it by checking out the OpenWRT trunk & trying to
compile KLone in there with the following changes to the default makefile:
KLONE_CONF_ARGS ?= --disable_cxx --install_daemon_only --prefix=/usr
--disable-lib=openssl
This will say the following:
adding optional lib dependency openssl
adding optional lib dependency openssl_psk
adding optional lib dependency z
... snip ...
checking dependencies
searching for optional lib feature openssl
searching for optional lib feature openssl_psk
searching for optional lib feature z
[wrn] could not find optional dependency 'openssl_psk'
It shouldn't be able to find openssl! OpenWRT hasn't compiled it in, and as
I'm cross compiling, I don't want KLone to be linked against i386 libs when
it needs to run on an ARM processor... That will surely give troubles.
What can I do to prevent this or should I wait for rc11?
Thx,
Steven
2008/6/5 Stefano Barbato <barbato at koanlogic.com>
> Hello Steven,
>
> on a Mac/x86 with gcc 4.0.1 this is the Makefile that produces the smallest
> daemon (149372 bytes using the default, unmodified, source code):
>
> ---[ Makefile ]---
> KLONE_VERSION = 2.1.1rc7
>
> KLONE_CONF_ARGS = --disable-lib=openssl --disable_cxx
>
> WEBAPP_DIR = $(CURDIR)/webapp
>
> WEBAPP_CFLAGS += -Os
> CFLAGS += -Os
>
> include klapp.mk
>
> klapp.mk: ;wget -O $@ -c http://koanlogic.com/klone/klapp-2.0.0.mk
> -------------------
>
> bye,
> s
>
>
>
>
> On 05/giu/08, at 14:57, Steven Van Ingelgem wrote:
>
> Hi,
>>
>>
>> Is there a way to bring down the size of the kloned executable? Right now
>> I got it down to 181k, but can there be added some parameters to the
>> configure command to make it even smaller?
>> Does it 'strip' itselves after the compile finishes up?
>>
>> Is it possible that I got it down to 386 bytes after running strip on it?
>> ["mipsel-linux-strip kloned" to be correct]
>>
>> I can't test it right now, but I just was wondering about it...
>>
>>
>> Thanks :)
>> _______________________________________________
>> Klone-users mailing list
>> Klone-users at koanlogic.com
>> http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users
>>
>
>
> _______________________________________________
> Klone-users mailing list
> Klone-users at koanlogic.com
> http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://koanlogic.com/pipermail/klone-users/attachments/20080821/c1beadf1/attachment.html
More information about the klone-users
mailing list