Source and target have different EABI versions
<p>I'm trying to compile a .so file using an ARM toolchain. However I keep getting this error- </p>

<blockquote>
  <p>error: Source object has EABI version 0, but target  has EABI version 5</p>
</blockquote>

<p>I can't change anything in the tool chain as I have to use the one given. I've never seen this error before.</p>

<p>I used this compiler flag - <br/>
 <code>-Wl,--no-warn-mismatch</code><br/>
But had to take it out as it broke a lot of other stuff. </p>

<p>The compiler flags I'm using are:<br/>
<code>-fPIC -O2 -marm -march=armv7-a</code> </p>