summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-shlib/Makefile
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-02-28 13:48:03 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-02-28 13:48:03 +0000
commitc80968e9545cfb76d818e8fd794c17ca5bfd360d (patch)
tree7e9abe77e508f4afa87981977022aa4460779f7c /llvm/tools/llvm-shlib/Makefile
parent2c2f83ef076523d31d4a124786b87b1a1f99b253 (diff)
downloadbcm5719-llvm-c80968e9545cfb76d818e8fd794c17ca5bfd360d.tar.gz
bcm5719-llvm-c80968e9545cfb76d818e8fd794c17ca5bfd360d.zip
Centralize the handling of install_name and rpath.
This centralizes the Makefile handling of -install_name and -rpath. It also moves the cmake build to using @rpath. The reason being that libclang needs it, and it works for everything else. A followup patch will move clang to using this and then there will be a single point to edit to support other systems. llvm-svn: 202499
Diffstat (limited to 'llvm/tools/llvm-shlib/Makefile')
-rw-r--r--llvm/tools/llvm-shlib/Makefile8
1 files changed, 0 insertions, 8 deletions
diff --git a/llvm/tools/llvm-shlib/Makefile b/llvm/tools/llvm-shlib/Makefile
index 317da517202..92ddfdb7631 100644
--- a/llvm/tools/llvm-shlib/Makefile
+++ b/llvm/tools/llvm-shlib/Makefile
@@ -49,14 +49,6 @@ ifeq ($(HOST_OS),Darwin)
endif
# Include everything from the .a's into the shared library.
LLVMLibsOptions := $(LLVMLibsOptions) -all_load
-
- # Mac OS X 10.4 and earlier tools do not allow a second -install_name on command line
- DARWIN_VERS := $(shell echo $(TARGET_TRIPLE) | sed 's/.*darwin\([0-9]*\).*/\1/')
- ifneq ($(DARWIN_VERS),8)
- LLVMLibsOptions := $(LLVMLibsOptions) \
- -Wl,-install_name \
- -Wl,"@rpath/lib$(LIBRARYNAME)$(SHLIBEXT)"
- endif
endif
ifeq ($(HOST_OS), $(filter $(HOST_OS), DragonFly Linux FreeBSD GNU/kFreeBSD OpenBSD GNU Bitrig))
OpenPOWER on IntegriCloud