Forum: NGINX build question

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
F797ddd7f8bd2f6939890e49ee6dc1dc?d=identicon&s=25 AJ Weber (Guest)
on 2012-10-28 01:26
(Received via mailing list)
I was attempting to build nginx 1.2.4 from source, and include the
chunkin module.  I also included the autolib module, because from what I
could understand, it would help reduce the need for some of the other
source/devel packages to build.

I ended up with a clean build, but nginx is 6.3MB, and the version I
installed from a binary package is only 813KB.  So I'm wondering whether
this is normal or what happened, and basically how to test my build
now.  Is there a test-script package or anything that can verify that
binary I created?

Thanks again,
AJ
97b81453789bfb9cb8a3f11e71ca3017?d=identicon&s=25 Sergey Budnevitch (Guest)
on 2012-10-28 16:58
(Received via mailing list)
On 28  Oct2012, at 03:24 , AJ Weber <aweber@comcast.net> wrote:

> I was attempting to build nginx 1.2.4 from source, and include the chunkin
module.  I also included the autolib module, because from what I could 
understand,
it would help reduce the need for some of the other source/devel packages to
build.
>
> I ended up with a clean build, but nginx is 6.3MB, and the version I installed
from a binary package is only 813KB.  So I'm wondering whether this is normal or
what happened, and basically how to test my build now.  Is there a test-script
package or anything that can verify that binary I created?

It is normal. Your binary contains debug information and version from
package is stripped (man strip).
F797ddd7f8bd2f6939890e49ee6dc1dc?d=identicon&s=25 AJ Weber (Guest)
on 2012-10-28 18:02
(Received via mailing list)
Thank you for the reply!

Is it better if I rebuild without the debug information in the binary
(for performance or other reasons)?  If so, are there some recommended
options to pass to cc-opt and/or ld-opt?

Thank you again!
-AJ
97b81453789bfb9cb8a3f11e71ca3017?d=identicon&s=25 Sergey Budnevitch (Guest)
on 2012-10-29 09:19
(Received via mailing list)
On 28  Oct2012, at 21:00 , AJ Weber <aweber@comcast.net> wrote:

> Thank you for the reply!
>
> Is it better if I rebuild without the debug information in the binary (for
performance or other reasons)?

No, debugging symbols has neglectable impact on performance and RAM
usage,
you need to strip binary only if you want to save disk storage.
This topic is locked and can not be replied to.