title: Why does centos include extra dependencies in dylib build
body: <p>I think it might have something to do with lower level dependencies in my project(openssl, rdkafka), but it does not seem like it from the ldd output</p>
  
  <p>Ubuntu:</p>
  
  <p><a href="https://i.stack.imgur.com/68RW4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/68RW4.png" alt="enter image description here"></a></p>
  
  <p>Centos:</p>
  
  <p><a href="https://i.stack.imgur.com/fH1wV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fH1wV.png" alt="enter image description here"></a></p>
  
  <p>Both built from the same source with</p>
  
  <pre class="lang-sh prettyprint-override"><code>cargo b --release
  </code></pre>
  
  <p>Cargo.toml</p>
  
  <pre><code>[package]
  name = "wrapper-ffi"
  version = "0.1.0"
  authors = [""]
  edition = "2018"
  
  # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
  
  [dependencies]
  wrapper={path="../wrapper"}
  
  [lib]
  crate-type = ["cdylib"]
  
  [features]
  cmake-build=["wrapper/cmake-build"]
  </code></pre>