aboutsummaryrefslogtreecommitdiff
path: root/Makefile.rules
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-05-08 23:08:58 +0000
committerMike Stump <mrs@apple.com>2009-05-08 23:08:58 +0000
commit3fbdbd98989f3e9c59342e59fdad35a56bb90923 (patch)
tree9cd22f097c04e338b7b3d9b761840d3827c264b6 /Makefile.rules
parent099672beef48a9de0f365f13d41eed36017576b4 (diff)
In non-pic builds, we can use -mdynamic-no-pic for a little more speed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71281 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules
index ce31f22ee0..4acada3508 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -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