Re: Striping the library on iOS

2017-03-13 Thread Jeffrey Walton
On Mon, Mar 13, 2017 at 5:53 PM,   wrote:
> Here is the build log from our library: http://pastebin.com/srRGzy2D
>
> We have not modified the cryptopp script in anyway so the output would look
> the same as if you called it with static lean.
>
> The interesting thing here is that it says -dynamic not specified and
> -dead_strip is ignored.

All the source files being compiled lack -ffunction-sections and
-fdata-sections.

You can only dead-strip a final executable (dylib or exe). You cannot
strip a static archive. A static archive is just a collection of
object files (*.o). The archive needs to be linked with an executable
(dylib or exe), then the final executable can be stripped.

Jeff

-- 
-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com.
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 cryptopp-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Striping the library on iOS

2017-03-13 Thread pdoherty
Here is the build log from our library: http://pastebin.com/srRGzy2D

We have not modified the cryptopp script in anyway so the output would look 
the same as if you called it with static lean.

The interesting thing here is that it says -dynamic not specified and 
-dead_strip is ignored.

Patrick

On Monday, March 13, 2017 at 3:57:25 PM UTC-5, Jeffrey Walton wrote:
>
> On Mon, Mar 13, 2017 at 4:16 PM,   
> wrote: 
> > Here is the build script we use to build our library with the arguments 
> of 
> > static: http://pastebin.com/yeH8xBNs 
> > 
> > and we are using the cryptopp GNUmakefile-cross with static lean as the 
> > arguments. 
>
> I need to see the build log. 
>
> Jeff 
>

-- 
-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com.
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 cryptopp-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Striping the library on iOS

2017-03-13 Thread Jeffrey Walton
On Mon, Mar 13, 2017 at 4:16 PM,   wrote:
> Here is the build script we use to build our library with the arguments of
> static: http://pastebin.com/yeH8xBNs
>
> and we are using the cryptopp GNUmakefile-cross with static lean as the
> arguments.

I need to see the build log.

Jeff

-- 
-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com.
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 cryptopp-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Striping the library on iOS

2017-03-13 Thread pdoherty
Here is the build script we use to build our library with the arguments of 
static: http://pastebin.com/yeH8xBNs

and we are using the cryptopp GNUmakefile-cross with static lean as the 
arguments.  

Patrick

On Monday, March 13, 2017 at 2:50:40 PM UTC-5, Jeffrey Walton wrote:
>
> On Mon, Mar 13, 2017 at 3:20 PM,   
> wrote: 
> > I have my library, which is static, linked with a static cryptopp 
> library. 
> > I have cryptopp set to build lean and have the flags for -ffunctions and 
> > -fdata-sections in my make file as well.  However, when I call strip on 
> the 
> > final product nothing is actually stripped and the cryptopp library has 
> not 
> > shrunk.  Am I missing a step or is it not possible to strip a static 
> linked 
> > library on iOS? 
>
> Please show the command you are using to strip. Maybe better, please 
> provide the entire build log for the executable. Put it on PasteBin 
> since its probably very large. 
>
> Jeff 
>

-- 
-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com.
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 cryptopp-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Striping the library on iOS

2017-03-13 Thread Jeffrey Walton
On Mon, Mar 13, 2017 at 3:20 PM,   wrote:
> I have my library, which is static, linked with a static cryptopp library.
> I have cryptopp set to build lean and have the flags for -ffunctions and
> -fdata-sections in my make file as well.  However, when I call strip on the
> final product nothing is actually stripped and the cryptopp library has not
> shrunk.  Am I missing a step or is it not possible to strip a static linked
> library on iOS?

Please show the command you are using to strip. Maybe better, please
provide the entire build log for the executable. Put it on PasteBin
since its probably very large.

Jeff

-- 
-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com.
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 cryptopp-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.