Package: lm-sensors-3 Version: 1:3.0.2-2 Severity: wishlist Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu intrepid ubuntu-patch
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. *** /tmp/tmplQQTaq 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 We thought you might be interested in doing the same. -- System Information: Debian Release: lenny/sid APT prefers intrepid-updates APT policy: (500, 'intrepid-updates'), (500, 'intrepid-security'), (500, 'intrepid-proposed'), (500, 'intrepid') , 'intrepid') Architecture: i386 (i686) Kernel: Linux 2.6.27-11-generic (SMP w/2 CPU cores) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash --===============1127119989== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="tmpAD1H78" diff -u lm-sensors-3-3.0.2/debian/patches/series lm-sensors-3-3.0.2/debian/patches/series --- lm-sensors-3-3.0.2/debian/patches/series +++ lm-sensors-3-3.0.2/debian/patches/series @@ -6,0 +7 @@ +07-use-LDFLAGS.patch only in patch2: unchanged: --- lm-sensors-3-3.0.2.orig/debian/patches/07-use-LDFLAGS.patch +++ lm-sensors-3-3.0.2/debian/patches/07-use-LDFLAGS.patch @@ -0,0 +1,13 @@ +Index: lm-sensors-3-3.0.2/lib/Module.mk +=================================================================== +--- lm-sensors-3-3.0.2.orig/lib/Module.mk 2008-05-18 18:07:48.000000000 +0200 ++++ lm-sensors-3-3.0.2/lib/Module.mk 2009-01-26 22:15:02.000000000 +0100 +@@ -60,7 +60,7 @@ + + # 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) $@ --===============1127119989==-- -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org