<div class="gmail_quote">On Thu, Feb 19, 2009 at 5:52 PM, Nick Lewycky <span dir="ltr"><<a href="mailto:nicholas@mxc.ca">nicholas@mxc.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div></div>
<div class="Wj3C7c">Aaron Gray wrote:<br>> Hi,<br>><br>> I partly built LLVM on Cygwin yesterday and it was fine as far as it<br>> went. But after doing a svn update today I am getting the following<br>> warning on every compile :-<br>
><br>><br>>     llvm[3]: Compiling LowerAllocations.cpp for Debug build<br>>     /usr/src/llvm/lib/Transforms/Utils/LowerAllocations.cpp:1: warning:<br>>     -fPIC ignored for target (all code is position independent)<br>
><br>><br>> This maybe happening on other targets too.<br><br></div></div>Thanks for the report. This is certainly due to my change last night to<br>make LLVM build as PIC by default.<br></blockquote>
<div>
<div>I was a little perplex at the warning as I could not ascertain where thery were coming from and could see no obvious commit  !:)</div>
<div> </div>
<div>Out of interest, could you point me to the patch or commit, please.</div>
<div> </div></div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><span id=""></span><br>Part of the fix is going to be splitting apart whether we're building<br>PIC and whether we pass in the -fPIC flag. We want to know whether the<br>
build is PIC in order to control whether libLTO should be built. On your<br>platform we'll still want to build libLTO but don't want to pass the<br>-fPIC flag.<br></blockquote>
<div>Nice</div>
<div><br>>The other part of the fix I'm not so sure about. How should the build<br>>system detect that we're building PIC without the -fPIC flag on this<br>>platform?</div>
<div> </div>
<div>
<div>Looks like configure/autoconf territory. 'configure' flashes up that Cygwin supports PIC. See attached config.out file.</div>
<div> </div></div>
<div> </div>
<div>Aaron</div>
<div> </div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><span id=""></span><br>Nick<br><br>> Aaron<br>><br>><br>><br>><br>> ------------------------------------------------------------------------<br>
><br>> _______________________________________________<br>> LLVM Developers mailing list<br>> <a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu/" target="_blank">http://llvm.cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br><br>_______________________________________________<br>LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu/" target="_blank">http://llvm.cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</blockquote></div><br>