diff options
author | Mike Stump <mrs@apple.com> | 2009-05-08 23:08:58 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-05-08 23:08:58 +0000 |
commit | 3fbdbd98989f3e9c59342e59fdad35a56bb90923 (patch) | |
tree | 9cd22f097c04e338b7b3d9b761840d3827c264b6 /Makefile.rules | |
parent | 099672beef48a9de0f365f13d41eed36017576b4 (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.rules | 5 |
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 |