Changeset 5939

Show
Ignore:
Timestamp:
03/06/11 21:20:55 (15 months ago)
Author:
khali
Message:

Only export from libsensors symbols which are actually public (i.e.
listed in the public header files and documented in the manual page.)
Patch from Cristian Rodriguez <crrodriguez@…>.

Location:
lm-sensors/trunk
Files:
1 added
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/CHANGES

    r5936 r5939  
    99              Add support for new sysfs attributes 
    1010              Add support for humidity sensors 
     11              Limit symbol visibility 
    1112  sensors.conf.default: Add a section for the W83627THF 
    1213                        Add a section for the SCH5127 
  • lm-sensors/trunk/lib/Module.mk

    r5879 r5939  
    6464# How to create the shared library 
    6565$(MODULE_DIR)/$(LIBSHLIBNAME): $(LIBSHOBJECTS) 
    66         $(CC) -shared $(LDFLAGS) -Wl,-soname,$(LIBSHSONAME) -o $@ $^ -lc -lm 
     66        $(CC) -shared $(LDFLAGS) -Wl,--version-script=$(LIB_DIR)/libsensors.map -Wl,-soname,$(LIBSHSONAME) -o $@ $^ -lc -lm 
    6767 
    6868$(MODULE_DIR)/$(LIBSHSONAME): $(MODULE_DIR)/$(LIBSHLIBNAME)