title: Cross-compilation to x86_64-unknown-linux-gnu fails on Mac OSX
body: <p>I tried to compile one of my Rust projects to the x86_64-unknown-linux-gnu target:</p>
  
  <pre class="lang-none prettyprint-override"><code>$ cargo build --target=x86_64-unknown-linux-gnu
   Compiling deployer v0.1.0 (file:///Users/raphael/web/deployer)
    error: linking with `cc` failed: exit code: 1
    |
    = note: "cc"
    = note: clang: warning: argument unused during compilation: '-pie'
  ld: unknown option: --as-needed
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  </code></pre>
  
  <p>I don't know what to do with such a message. What should I do to make it work?</p>
  
  <p>Here is my <code>Cargo.toml</code> file:</p>
  
  <pre><code>[package]
  name = "deployer"
  version = "0.1.0"
  authors = ["..."]
  
  [dependencies]
  clap = "2.14.0"
  time = "0.1.35"
  slack-hook = "0.2"
  </code></pre>
  
  <p>Cargo version:</p>
  
  <pre class="lang-none prettyprint-override"><code>cargo 0.13.0-nightly (109cb7c 2016-08-19)
  </code></pre>
  
  <p>Rust version:</p>
  
  <pre class="lang-none prettyprint-override"><code>rustc 1.12.0 (3191fbae9 2016-09-23)
  </code></pre>
  
  <p>I tried to update everything with rustup, but I still get the same problem.</p>