<br><br>
<div><span class="gmail_quote">On 8/4/06, <b class="gmail_sendername">David Faure</b> <<a href="mailto:faure@kde.org">faure@kde.org</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On Thursday 03 August 2006 19:43, Tim Beaulen wrote:<br>> SVN commit 569387 by beaulen:<br>><br>> -fPIC is needed on AMD64 it seems
<br><br>Well, amd64 detects it, but isn't -fPIC needed always?</blockquote>
<div> </div>
<div> </div>
<div>I have no idea.</div>
<div>Someone on IRC told me he had problems compiling Karbon on his AMD64 computer.</div>
<div> </div>
<div>I looked around on the internet and saw that ia64 computers also had problems with -fPIC.</div>
<div> </div>
<div>(Browsing through the CMake code I saw that -fPIC is only added to the c-flags and not the cxx-flags.)</div>
<div> </div>
<div>Since it looks like this is a problem on 64 bit computers, I added this temporary hack.</div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div>The correct solution is, like BCoppens told me on IRC, to add a check to see if -fPIC can be used and if it needs to be used.</div>
<div>So compiling a little test program to see if it fails, and if it does, add -fPIC to the cxx flags.</div>
<div> </div><br> </div><br>