diff options
| author | Bill Wendling <isanbard@gmail.com> | 2012-10-03 23:52:10 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2012-10-03 23:52:10 +0000 |
| commit | 7dee2557efce77687e16c07bf89669a7546fb868 (patch) | |
| tree | 1f71c368a404fde51c13eb987f5d0817aa375919 /llvm/runtime/libprofile | |
| parent | 84ad5129a2765eaad06afbbdd642312ff7e8c64e (diff) | |
| download | bcm5719-llvm-7dee2557efce77687e16c07bf89669a7546fb868.tar.gz bcm5719-llvm-7dee2557efce77687e16c07bf89669a7546fb868.zip | |
Add an explicit -object_path_lto flag during linking with a uniquified temporary
file name if building Apple-style.
llvm-svn: 165185
Diffstat (limited to 'llvm/runtime/libprofile')
| -rw-r--r-- | llvm/runtime/libprofile/Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/llvm/runtime/libprofile/Makefile b/llvm/runtime/libprofile/Makefile index d8511495ce6..1ea08953387 100644 --- a/llvm/runtime/libprofile/Makefile +++ b/llvm/runtime/libprofile/Makefile @@ -44,8 +44,15 @@ ifeq ($(HOST_OS),Darwin) # command line. DARWIN_VERS := $(shell echo $(TARGET_TRIPLE) | sed 's/.*darwin\([0-9]*\).*/\1/') ifneq ($(DARWIN_VERS),8) - LLVMLibsOptions := $(LLVMLibsOptions) \ + LLVMLibsOptions := $(LLVMLibsOptions) \ -Wl,-install_name \ -Wl,"@executable_path/../lib/lib$(LIBRARYNAME)$(SHLIBEXT)" endif + + # If we're doing an Apple-style build, add the LTO object path. + ifeq ($(RC_BUILDIT),YES) + TempFile = $(shell mktemp ${OBJROOT}/profile_rt-lto.XXXXXX) + LLVMLibsOptions := $(LLVMLibsOptions) \ + -Wl,-object_path_lto -Wl,$(TempFile) + endif endif |

