make: add rpath to the shared library build option.
Signed-off-by: Seth Howell <seth.howell@intel.com> Change-Id: I9f39ef73dcd9eaed7e5ca9431ab33aa139d9d268 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3361 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
parent
a9be2ce64a
commit
ebba5a0c58
@ -271,6 +271,7 @@ LINK_CXX=\
|
|||||||
# Provide function to ease build of a shared lib
|
# Provide function to ease build of a shared lib
|
||||||
define spdk_build_realname_shared_lib
|
define spdk_build_realname_shared_lib
|
||||||
$(CC) -o $@ -shared $(CPPFLAGS) $(LDFLAGS) \
|
$(CC) -o $@ -shared $(CPPFLAGS) $(LDFLAGS) \
|
||||||
|
-Wl,-rpath=$(DESTDIR)/$(libdir) \
|
||||||
-Wl,--soname,$(notdir $@) \
|
-Wl,--soname,$(notdir $@) \
|
||||||
-Wl,--whole-archive $(1) -Wl,--no-whole-archive \
|
-Wl,--whole-archive $(1) -Wl,--no-whole-archive \
|
||||||
-Wl,--version-script=$(2) \
|
-Wl,--version-script=$(2) \
|
||||||
|
Loading…
Reference in New Issue
Block a user