mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-13 09:33:50 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124821 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
69df72367f
commit
0ecd296421
@ -1083,12 +1083,14 @@ ifdef LIBRARYNAME
|
|||||||
# Make sure there isn't any extraneous whitespace on the LIBRARYNAME option
|
# Make sure there isn't any extraneous whitespace on the LIBRARYNAME option
|
||||||
LIBRARYNAME := $(strip $(LIBRARYNAME))
|
LIBRARYNAME := $(strip $(LIBRARYNAME))
|
||||||
ifdef LOADABLE_MODULE
|
ifdef LOADABLE_MODULE
|
||||||
LibName.A := $(LibDir)/$(LIBRARYNAME).a
|
BaseLibName.A := $(LIBRARYNAME).a
|
||||||
LibName.SO := $(SharedLibDir)/$(LIBRARYNAME)$(SHLIBEXT)
|
BaseLibName.SO := $(LIBRARYNAME)$(SHLIBEXT)
|
||||||
else
|
else
|
||||||
LibName.A := $(LibDir)/lib$(LIBRARYNAME).a
|
BaseLibName.A := lib$(LIBRARYNAME).a
|
||||||
LibName.SO := $(SharedLibDir)/$(SharedPrefix)$(LIBRARYNAME)$(SHLIBEXT)
|
BaseLibName.SO := $(SharedPrefix)$(LIBRARYNAME)$(SHLIBEXT)
|
||||||
endif
|
endif
|
||||||
|
LibName.A := $(LibDir)/$(BaseLibName.A)
|
||||||
|
LibName.SO := $(SharedLibDir)/$(BaseLibName.SO)
|
||||||
LibName.O := $(LibDir)/$(LIBRARYNAME).o
|
LibName.O := $(LibDir)/$(LIBRARYNAME).o
|
||||||
LibName.BCA:= $(LibDir)/lib$(LIBRARYNAME).bca
|
LibName.BCA:= $(LibDir)/lib$(LIBRARYNAME).bca
|
||||||
|
|
||||||
@ -1142,7 +1144,7 @@ DestSharedLibDir := $(DESTDIR)$(PROJ_bindir)
|
|||||||
else
|
else
|
||||||
DestSharedLibDir := $(DESTDIR)$(PROJ_libdir)
|
DestSharedLibDir := $(DESTDIR)$(PROJ_libdir)
|
||||||
endif
|
endif
|
||||||
DestSharedLib := $(DestSharedLibDir)/$(SharedPrefix)$(LIBRARYNAME)$(SHLIBEXT)
|
DestSharedLib := $(DestSharedLibDir)/$(BaseLibName.SO)
|
||||||
|
|
||||||
install-local:: $(DestSharedLib)
|
install-local:: $(DestSharedLib)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user