In non-pic builds, we can use -mdynamic-no-pic for a little more speed.

llvm-svn: 71281
This commit is contained in:
Mike Stump 2009-05-08 23:08:58 +00:00
parent c218c84a80
commit d1b4636717
1 changed files with 5 additions and 0 deletions

View File

@ -338,6 +338,11 @@ ifeq ($(ENABLE_PIC),1)
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