summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.rules5
-rw-r--r--tools/gold/Makefile2
2 files changed, 6 insertions, 1 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 2fc5eeb0c7..408588132f 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -1128,7 +1128,12 @@ install-local::
uninstall-local::
$(Echo) Uninstall circumvented with NO_INSTALL
else
+
+ifdef LOADABLE_MODULE
+DestSharedLib = $(DESTDIR)$(PROJ_libdir)/$(LIBRARYNAME)$(SHLIBEXT)
+else
DestSharedLib = $(DESTDIR)$(PROJ_libdir)/lib$(LIBRARYNAME)$(SHLIBEXT)
+endif
install-local:: $(DestSharedLib)
diff --git a/tools/gold/Makefile b/tools/gold/Makefile
index 77eacb7ee5..1627346810 100644
--- a/tools/gold/Makefile
+++ b/tools/gold/Makefile
@@ -8,7 +8,7 @@
##===----------------------------------------------------------------------===##
LEVEL = ../..
-LIBRARYNAME = libLLVMgold
+LIBRARYNAME = LLVMgold
EXPORTED_SYMBOL_FILE = $(PROJ_SRC_DIR)/gold.exports