summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorandy <andy@7894878c-1315-0410-8ee3-d5d059ff63e0>2009-04-28 11:54:40 +0000
committerandy <andy@7894878c-1315-0410-8ee3-d5d059ff63e0>2009-04-28 11:54:40 +0000
commitd725a76fde98c1db2594aa5fdf7bab5f50f93198 (patch)
tree8327d934e338735a9e834ffc5b6c39ef60957c29 /lib
parent80216f32712310477f32a60ae74a7e5a6f6c5199 (diff)
downloadlm-sensors-d725a76fde98c1db2594aa5fdf7bab5f50f93198.tar.gz
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
Diffstat (limited to 'lib')
-rw-r--r--lib/Module.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Module.mk b/lib/Module.mk
index 3390c74f..b2378d6a 100644
--- a/lib/Module.mk
+++ b/lib/Module.mk
@@ -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) $@