title: Thrift bin file large size after compile
body: <p>I have a problem with compilation Thrift in docker container with alpine 3.8</p>
  
  <pre><code>FROM alpine:3.8
  
  RUN apk add --update --no-cache \
          libstdc++ \
          libgcc \
          libevent \
          composer \
          tar \
          git \
          bash \
          nginx
  
  RUN  apk add --update --no-cache php7-dev boost-dev  autoconf  openssl-dev  automake make libtool bison flex  g++  &amp;&amp; \
       cd /tmp &amp;&amp; wget https://github.com/apache/thrift/archive/0.11.0.zip -O thrift.zip  &amp;&amp; unzip thrift.zip &amp;&amp; cd thrift-0.11.0 &amp;&amp; \
       ./bootstrap.sh &amp;&amp; ./configure --with-openssl=/usr/include/openssl --without-ruby --disable-tests --without-php_extension --without-python --without-haskell --without-java --without-perl --without-php --without-py3 --without-erlang &amp;&amp; make &amp;&amp; make install &amp;&amp; \
       cd /tmp/thrift-0.11.0/lib/php/src/ext/thrift_protocol &amp;&amp; phpize &amp;&amp; ./configure &amp;&amp; make &amp;&amp; \
       echo 'extension=thrift_protocol.so' &gt;&gt; /etc/php7/conf.d/thrift_protocol.ini &amp;&amp; \
       apk del --update --no-cache  php7-dev boost-dev  autoconf openssl-dev   automake make libtool bison flex  g++  &amp;&amp; \
       rm -rf /tmp/*
  </code></pre>
  
  <p>after compile bin file has size around 50MB</p>
  
  <pre><code>-rwxr-xr-x    1 root     root      55566368 Sep  5 10:05 thrift
  </code></pre>
  
  <p>for example bin file after compile on Mac OSX</p>
  
  <pre><code> 4.2M Sep  4 17:37 thrift
  </code></pre>