ld linker error "cpu model hidden symbol" : <p>I'm getting an ld error when attempting to compile an sfml program on ubuntu 16.04. This is apparently a known issue, and there is supposed to be a workaround, but I don't understand what is it...</p>

<p><a href="http://web.archive.org/web/20160509014317/https://gitlab.peach-bun.com/pinion/SFML/commit/3383b4a472f0bd16a8161fb8760cd3e6333f1782.patch" rel="noreferrer">http://web.archive.org/web/20160509014317/https://gitlab.peach-bun.com/pinion/SFML/commit/3383b4a472f0bd16a8161fb8760cd3e6333f1782.patch</a></p>

<p>The error spat out by ld is</p>

<pre><code>hidden symbol `__cpu_model' in /usr/lib/gcc/x86_64-linux-gnu/4.9/libgcc.a(cpuinfo.o) is referenced by DSO
</code></pre>

<p>There is no relevant code to this - as I understand it this error is produced on all ubuntu 16.04 systems with g++ 5, if the program to be linked contains objects such as <code>sf::Texture</code> and <code>sf::Sprite</code>. (I don't know any more detail than this.)</p>

<p>I have tried also compiling with g++ 4.9, but the same error occurs.</p>

<p>My compile line is <code>g++-4.9 --std=c++11 -Wall main.cpp -lsfml-graphics -lsfml-window -lsfml-system -o a.out</code></p>

<p>Has anyone else experienced this error and resolved it successfully?</p>
