mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-25 12:14:33 +00:00
libsensors: Take into account distribution LDFLAGS (Patch from Didier Roche).
From: Didier Roche <didrocks@ubuntu.com> Hi lm-sensors developer, It would be great if lm-sensors can take into account distribution LDFLAGS so that exported variables change linker behavior. For instance, ubuntu uses -Wl,-Bsymbolic-functions. Taking this patch will enable us to just sync from debian on this package. In Ubuntu, we've applied the attached patch to achieve the following: * handle default ubuntu LDFLAGS for linking option (LP: #321632) - Remove the old hack directly pushed in lib/Module.mk (now lib/Module.mk if from pristine source) - add debian/patches/07-use-LDFLAGS.patch to take LDFLAGS into account Debian and Ubuntu thought you might be interested to handle this directly upstream. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5713 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
dc4d5bb286
commit
3e310f8a8f
1 file changed
+1
-1
+1
-1
@@ -63,7 +63,7 @@ LIBHEADERFILES := $(MODULE_DIR)/error.h $(MODULE_DIR)/sensors.h
|
||||
|
||||
# How to create the shared library
|
||||
$(MODULE_DIR)/$(LIBSHLIBNAME): $(LIBSHOBJECTS)
|
||||
$(CC) -shared -Wl,-soname,$(LIBSHSONAME) -o $@ $^ -lc -lm
|
||||
$(CC) -shared $(LDFLAGS) -Wl,-soname,$(LIBSHSONAME) -o $@ $^ -lc -lm
|
||||
|
||||
$(MODULE_DIR)/$(LIBSHSONAME): $(MODULE_DIR)/$(LIBSHLIBNAME)
|
||||
$(RM) $@
|
||||
|
||||
Reference in new issue
Block a user