sensors/libsensors-visibility.patch

35 lines
932 B
Diff

--- /dev/null
+++ lib/libsensors.map
@@ -0,0 +1,20 @@
+{
+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;
+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) $@