diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-02-03 22:01:15 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-02-03 22:01:15 +0000 |
| commit | 4e03719cce3ce3d23f245ab3260bb3619005220f (patch) | |
| tree | bb9820fb2e7bdba7402e9485d5f3a94241c3663a /llvm | |
| parent | 7c60768590d145451146d9f33720b57baceee92c (diff) | |
| download | bcm5719-llvm-4e03719cce3ce3d23f245ab3260bb3619005220f.tar.gz bcm5719-llvm-4e03719cce3ce3d23f245ab3260bb3619005220f.zip | |
Factor the computation of the basename of libraries. This avoids renaming
them on install. Before we would have LLVMgold.so on the build directory but
libLLVMgold.so on the install dir.
llvm-svn: 124821
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/Makefile.rules | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/llvm/Makefile.rules b/llvm/Makefile.rules index cb439d3676f..eab886190cc 100644 --- a/llvm/Makefile.rules +++ b/llvm/Makefile.rules @@ -1083,12 +1083,14 @@ ifdef LIBRARYNAME # Make sure there isn't any extraneous whitespace on the LIBRARYNAME option LIBRARYNAME := $(strip $(LIBRARYNAME)) ifdef LOADABLE_MODULE -LibName.A := $(LibDir)/$(LIBRARYNAME).a -LibName.SO := $(SharedLibDir)/$(LIBRARYNAME)$(SHLIBEXT) +BaseLibName.A := $(LIBRARYNAME).a +BaseLibName.SO := $(LIBRARYNAME)$(SHLIBEXT) else -LibName.A := $(LibDir)/lib$(LIBRARYNAME).a -LibName.SO := $(SharedLibDir)/$(SharedPrefix)$(LIBRARYNAME)$(SHLIBEXT) +BaseLibName.A := lib$(LIBRARYNAME).a +BaseLibName.SO := $(SharedPrefix)$(LIBRARYNAME)$(SHLIBEXT) endif +LibName.A := $(LibDir)/$(BaseLibName.A) +LibName.SO := $(SharedLibDir)/$(BaseLibName.SO) LibName.O := $(LibDir)/$(LIBRARYNAME).o LibName.BCA:= $(LibDir)/lib$(LIBRARYNAME).bca @@ -1142,7 +1144,7 @@ DestSharedLibDir := $(DESTDIR)$(PROJ_bindir) else DestSharedLibDir := $(DESTDIR)$(PROJ_libdir) endif -DestSharedLib := $(DestSharedLibDir)/$(SharedPrefix)$(LIBRARYNAME)$(SHLIBEXT) +DestSharedLib := $(DestSharedLibDir)/$(BaseLibName.SO) install-local:: $(DestSharedLib) |

