[LLVMdev] -fPIC warning on every compile on Cygwin
Jay Foad
jay.foad at gmail.com
Fri Feb 27 08:32:31 PST 2009
>> 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.
More information about the llvm-dev
mailing list