X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=Makefile.rules;h=408588132f607c76ca09c75e83fd9a0b28bfa952;hb=41396302126c24f1d5231e191852ebf2ff37fe23;hp=d77fe27b27cc3d8b8a4fbe2c2b344ace8c6c031b;hpb=dd464df687faf544e83684d0c0e4da87c05f8bfe;p=oota-llvm.git diff --git a/Makefile.rules b/Makefile.rules index d77fe27b27c..408588132f6 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -589,10 +589,14 @@ ifeq ($(TARGET_OS),Darwin) endif ifdef SHARED_LIBRARY +ifneq ($(HOST_OS),Darwin) + LD.Flags += $(RPATH) -Wl,'$$ORIGIN' +else ifneq ($(DARWIN_MAJVERS),4) LD.Flags += $(RPATH) -Wl,$(LibDir) endif endif +endif ifdef TOOL_VERBOSE C.Flags += -v @@ -1124,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)