Query on Libgcrypt for ARM

Opal Raava opalraava at riseup.net
Thu Jan 21 15:02:57 CET 2016



On 01/20/2016 12:00 PM, Ramesh Chandra Vuppala wrote:
> Hello,
> 
> We are trying to cross compile and generate static gcrypt library for
> arm processor and cortex-r7 cpu using 'arm-linux-gnueabi-gcc' compiler
> option and got library of size 4.5 MB
> 
> 1. Is there any configure option or any other means to reduce the size
> of the static library (libgcrypt.a) ? 
> 
> We want library size in ~1 MB range.
> Tried using -- disable-threads since we do not require multi-threading,
> but it did not help.
> 
> 2. We could see copying.lib in the gcrypt package as 26 KB. Is this the
> final library? If yes, how can we generate for arm with same size?
> 
> 3. We used below configuration option command. Could you please correct
> if we are wrong?
> 
>> ./configure CC=arm-linux-gnueabi-gcc --target=arm-none-linux-gnueabi
> --host=arm-unknown-linux-gnueabi --enable-static=libgcrypt
> --disable-threads --disable no exec stack
> 
>> ./config.status
> 
>> make
> 
> - Thanks,
> Ramesh

Hi Ramesh,

I've not tried this on ARM, but when I pull the latest git, and compile
on my x64_86 machine, with:

 ./configure --disable-shared --enable-static

I get with ls -h:

7,6M Jan 21 14:56 libgcrypt.a

If I then strip the debugging symbols with: strip libgcrypt.a
I'm left with a library around 1Mb big:

1,1M Jan 21 14:57 libgcrypt.a

Maybe it's just a matter of stripping the debug info?

Hope this helps,
--Opal



More information about the Gcrypt-devel mailing list