[LLVMdev] -fPIC warning on every compile on Cygwin

Aaron Gray aaronngray.lists at googlemail.com
Fri Feb 27 10:00:18 PST 2009


On Fri, Feb 27, 2009 at 5:48 PM, Aaron Gray <aaronngray.lists at googlemail.com
> wrote:

>   On Fri, Feb 27, 2009 at 4:50 PM, Aaron Gray <
> aaronngray.lists at googlemail.com> wrote:
>
>>  On Fri, Feb 27, 2009 at 4:32 PM, Jay Foad <jay.foad at gmail.com> wrote:
>>
>>> >> Could you please rig Makefile.rules or something to print out the
>>> value
>>> >> of $(LLVM_ON_WIN32) ? The only way I can think of this happening is if
>>> >> that's erroneously false.
>>>
>>> This works for me:
>>>
>>> Index: Makefile.rules
>>> ===================================================================
>>> --- Makefile.rules      (revision 65633)
>>> +++ Makefile.rules      (working copy)
>>> @@ -298,6 +298,8 @@
>>>       # Common symbols not allowed in dylib files
>>>       CXX.Flags += -fno-common
>>>       C.Flags   += -fno-common
>>> +    else ifeq ($(OS),Cygwin)
>>> +      # Nothing. Cygwin defaults to PIC and warns when given -fPIC
>>>     else
>>>       # Linux and others; pass -fPIC
>>>       CXX.Flags += -fPIC
>>
>>
>> Jay, thanks I will try this.
>>
>
> I had to hand modify the code as it did not seem to want to work as a
> patch.
>
> However, it does not deal with the LLVMHello.dll problem. Here's what I am
> getting :-
>

Nick, could you lease give me a list of all the LTO revision/patches so that
I may backpeddle and try to get to the bottom of this.

Thanks,

Aaron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090227/39c94a1d/attachment.html>


More information about the llvm-dev mailing list