summaryrefslogtreecommitdiff
path: root/extras/volume_id/lib/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'extras/volume_id/lib/Makefile')
-rw-r--r--extras/volume_id/lib/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/extras/volume_id/lib/Makefile b/extras/volume_id/lib/Makefile
index 6a12f0e67a..f69df5f5ca 100644
--- a/extras/volume_id/lib/Makefile
+++ b/extras/volume_id/lib/Makefile
@@ -81,7 +81,9 @@ libvolume_id.a: $(HEADERS) $(OBJS)
$(SHLIB): $(HEADERS) .shlib $(addprefix .shlib/,$(OBJS))
$(E) " CC " $@
- $(Q) $(CC) -shared $(CFLAGS) -o $@ -Wl,-soname,libvolume_id.so.$(SHLIB_CUR) $(addprefix .shlib/,$(OBJS))
+ $(Q) $(CC) -shared $(CFLAGS) -o $@ \
+ -Wl,-soname,libvolume_id.so.$(SHLIB_CUR),--version-script,exported_symbols \
+ $(addprefix .shlib/,$(OBJS))
$(Q) ln -sf $@ libvolume_id.so.$(SHLIB_CUR)
$(Q) ln -sf $@ libvolume_id.so