On Thursday, September 18, 2014 11:20:59 PM UTC-4, SeungYoup Lee wrote:
>
>
> I want to only RSA module in Android ndk enviroment.
> When I build Crypto++ ..(so) ..  but module size too big 
> (cryptopp module, stl module, user module = 3.. too many..) 
>
> I visits many site.. but i can't small build..
> (also i sam it. .. http://morgwai.pl/ndkTutorial/ )
>
> I want to build crypto++ static library (because reduce module size..) 
> How can I start... ? 
>
> Please help me..
>
I think you are doing many things you should be. The issue is the Crypto++ 
shared object has a lot of functionality, and you don't want or need it.

Here's how I would approach it:

1. Compile Crypto++ with -ffunction-sections -fdata-sections
2. Create a wrapped shared object, compile with -Os
3. Wrapper uses -fvisibility=hidden and -Wl,--exclude-libs,ALL
4  Wrapper links against libcryptopp.a
5. Run 'strip' after building you library

I believe strip uses --strip-unneeded. I think you can get more aggressive 
(like --strip-debug and --strip-all) . But the downside is your crash 
reports will become useless.

You should add -ffunction-sections, -fdata-sections, -fvisibility=hidden 
and -Wl,--exclude-libs,ALL to CFLAGS and CXXFLAGS.

There's also a page on the Crypto++ wiki covering Android at 
http://www.cryptopp.com/wiki/Android_%28Command_Line%29 . The wiki is still 
having some problems (like thumbnail images not available), but you can 
read it.
 

-- 
-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to