From: Martin Wilck <mwi...@suse.com> For completeness, this isn't really necessary. --- libmpathcmd/Makefile | 6 ++++-- libmpathcmd/libmpathcmd.version | 13 +++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 libmpathcmd/libmpathcmd.version
diff --git a/libmpathcmd/Makefile b/libmpathcmd/Makefile index 08ccb81..2591019 100644 --- a/libmpathcmd/Makefile +++ b/libmpathcmd/Makefile @@ -3,6 +3,7 @@ include ../Makefile.inc SONAME = 0 DEVLIB = libmpathcmd.so LIBS = $(DEVLIB).$(SONAME) +VERSION_SCRIPT := libmpathcmd.version CFLAGS += $(LIB_CFLAGS) @@ -10,8 +11,9 @@ OBJS = mpath_cmd.o all: $(DEVLIB) -$(LIBS): $(OBJS) - $(CC) $(LDFLAGS) $(SHARED_FLAGS) -Wl,-soname=$@ -o $@ $(OBJS) $(LIBDEPS) +$(LIBS): $(OBJS) $(VERSION_SCRIPT) + $(CC) $(LDFLAGS) $(SHARED_FLAGS) -Wl,-soname=$@ \ + -Wl,--version-script=$(VERSION_SCRIPT) -o $@ $(OBJS) $(LIBDEPS) $(DEVLIB): $(LIBS) $(LN) $(LIBS) $@ diff --git a/libmpathcmd/libmpathcmd.version b/libmpathcmd/libmpathcmd.version new file mode 100644 index 0000000..5382a9a --- /dev/null +++ b/libmpathcmd/libmpathcmd.version @@ -0,0 +1,13 @@ +LIBMPATHCMD_0.8.4.0 { +global: + __mpath_connect; + mpath_connect; + mpath_disconnect; + mpath_process_cmd; + mpath_recv_reply; + mpath_recv_reply_len; + mpath_recv_reply_data; + mpath_send_cmd; +local: + *; +}; -- 2.28.0 -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel