[LLVMdev] -fPIC warning on every compile on Cygwin
Aaron Gray
aaronngray.lists at googlemail.com
Fri Feb 27 08:50:25 PST 2009
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.
Does it also deal with the lib/Transforms/Hello build failure ?
Many thanks,
Aaron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090227/60cda8a2/attachment.html>
More information about the llvm-dev
mailing list