[LLVMdev] Darwin option processing

Mike Stump mrs at apple.com
Fri May 8 14:54:24 PDT 2009


On May 8, 2009, at 1:49 PM, Mike Stump wrote:
> On May 8, 2009, at 1:02 PM, Chris Lattner wrote:
>> This goes against our general direction for llvm libraries: they
>> should generally all be built pic.
>
> After reviewing yet more of the Makefile,rules file, I believe
> ENABLE_PIC is the right thing to check.

Index: clang/Makefile.rules
===================================================================
--- clang/Makefile.rules        (revision 71270)
+++ clang/Makefile.rules        (working copy)
@@ -338,6 +338,11 @@
        C.Flags   += -fPIC
      endif
    endif
+else
+  ifeq ($(OS),Darwin)
+      CXX.Flags += -mdynamic-no-pic
+      C.Flags   += -mdynamic-no-pic
+  endif
  endif

  CXX.Flags     += $(CXXFLAGS) -Woverloaded-virtual

is the patch I had in mind.  Any objections?



More information about the llvm-dev mailing list