File libsensors-visibility.patch of Package sensors
---
lib/Module.mk | 2 +-
lib/libsensors.map | 23 +++++++++++++++++++++++
2 files changed, 24 insertions(+), 1 deletion(-)
--- /dev/null
+++ lib/libsensors.map
@@ -0,0 +1,23 @@
+{
+global:
+ libsensors_version;
+ sensors_cleanup;
+ sensors_do_chip_sets;
+ sensors_free_chip_name;
+ sensors_get_adapter_name;
+ sensors_get_all_subfeatures;
+ sensors_get_detected_chips;
+ sensors_get_features;
+ sensors_get_label;
+ sensors_get_subfeature;
+ sensors_get_value;
+ sensors_init;
+ sensors_parse_chip_name;
+ sensors_set_value;
+ sensors_snprintf_chip_name;
+ sensors_strerror;
+ sensors_parse_error;
+ sensors_parse_error_wfn;
+ sensors_fatal_error;
+local: *;
+ };
--- lib/Module.mk.orig
+++ lib/Module.mk
@@ -63,7 +63,7 @@ LIBHEADERFILES := $(MODULE_DIR)/error.h
# How to create the shared library
$(MODULE_DIR)/$(LIBSHLIBNAME): $(LIBSHOBJECTS)
- $(CC) -shared $(LDFLAGS) -Wl,-soname,$(LIBSHSONAME) -o $@ $^ -lc -lm
+ $(CC) -shared $(LDFLAGS) -Wl,--version-script=$(LIB_DIR)/libsensors.map -Wl,-soname,$(LIBSHSONAME) -o $@ $^ -lc -lm
$(MODULE_DIR)/$(LIBSHSONAME): $(MODULE_DIR)/$(LIBSHLIBNAME)
$(RM) $@