[LLVMdev] -fPIC warning on every compile on Cygwin

Nick Lewycky nicholas at mxc.ca
Fri Feb 27 09:41:02 PST 2009


Jay Foad 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

Okay. Could someone also test MinGW? Does its gcc emit a warning when 
passed -fPIC?

Nick

> Jay.
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
> 




More information about the llvm-dev mailing list