# Build question

**URL:** <https://www.ruby-forum.com/t/build-question/224047>\
**Category:** NGINX\
**Created:** [October 28, 2012, 1:26am UTC](https://www.ruby-forum.com/t/build-question/224047 "2012-10-28T01:26:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [October 28, 2012, 1:26am UTC](https://www.ruby-forum.com/t/build-question/224047/1 "2012-10-28T01:26:19Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![AJ\_Weber](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/8c91f0/32.png) [@AJ\_Weber](https://www.ruby-forum.com/u/AJ_Weber)\
**Post date:** [October 28, 2012, 4:58pm UTC](https://www.ruby-forum.com/t/build-question/224047/2 "2012-10-28T16:58:09Z")

</div>

On 28 Oct2012, at 03:24 , AJ Weber [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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).

---

<div class="post-metadata">

**Author:** ![AJ\_Weber](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/8c91f0/32.png) [@AJ\_Weber](https://www.ruby-forum.com/u/AJ_Weber)\
**Post date:** [October 28, 2012, 6:02pm UTC](https://www.ruby-forum.com/t/build-question/224047/3 "2012-10-28T18:02:25Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![AJ\_Weber](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/8c91f0/32.png) [@AJ\_Weber](https://www.ruby-forum.com/u/AJ_Weber)\
**Post date:** [October 29, 2012, 9:19am UTC](https://www.ruby-forum.com/t/build-question/224047/4 "2012-10-29T09:19:44Z")

</div>

On 28 Oct2012, at 21:00 , AJ Weber [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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.
