From 3e310f8a8f9252d4ac5fb0619a8922b9c27df74d Mon Sep 17 00:00:00 2001 From: Andre Prendel Date: Tue, 28 Apr 2009 11:54:40 +0000 Subject: [PATCH] libsensors: Take into account distribution LDFLAGS (Patch from Didier Roche). From: Didier Roche 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 --- lib/Module.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) $@