title: undefined reference to `__errno_location'
body: <p>I am compileing application for ndk, i am getting error "undefined reference to `__errno_location'". </p>
  
  <p>The error comes from a line</p>
  
  <pre><code>sprintf( buff, "%s TIOCMGET failed: %s\n", buff, strerror(errno) );
  </code></pre>
  
  <p>If I comment this line, the linker does not complain about the same otherwise it does. </p>
  
  <p>I am trying to build my own executable for android using Sourcery G++ Lite's arm-none-linux-gnueabi-gcc tool chain.</p>