Package: nagios-plugins-contrib
Version: 4.20120702
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu raring ubuntu-patch



In Ubuntu, the attached patch was applied to achieve the following:

  * debian/patches/check_memcached/ld-as-needed: Use LDLIBS instead of
    LDFLAGS to get the link order happy for building with --as-needed.

The patch should be fairly self-explanatory.  LDFLAGS is for actual
options passed to the linker, while LDLIBS is for -lfoo declarations.
On systems where --as-needed is used, symbols are resolved from left
to right, and LDFLAGS ends up in the wrong spot for the linker to
do the right thing.  This patch moves -lmemcached to where it needs
to be to resolve that.

... Adam


-- System Information:
Debian Release: wheezy/sid
  APT prefers raring-updates
  APT policy: (500, 'raring-updates'), (500, 'raring-security'), (500, 'raring')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.8.0-2-generic (SMP w/4 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -Nru nagios-plugins-contrib-4.20120702/debian/changelog nagios-plugins-contrib-4.20120702ubuntu1/debian/changelog
diff -Nru nagios-plugins-contrib-4.20120702/debian/patches/check_memcached/ld-as-needed nagios-plugins-contrib-4.20120702ubuntu1/debian/patches/check_memcached/ld-as-needed
--- nagios-plugins-contrib-4.20120702/debian/patches/check_memcached/ld-as-needed	1969-12-31 17:00:00.000000000 -0700
+++ nagios-plugins-contrib-4.20120702ubuntu1/debian/patches/check_memcached/ld-as-needed	2013-02-01 20:24:45.000000000 -0700
@@ -0,0 +1,10 @@
+--- x/check_memcached/Makefile	2012-07-02 15:41:03.000000000 -0600
++++ x/check_memcached/Makefile	2013-02-01 19:59:51.810647626 -0700
+@@ -1,6 +1,6 @@
+ #/usr/bin/make -f
+ CLEANFILES = check_memcached check_memcached.c
+-LDFLAGS += -lmemcached
++LDLIBS += -lmemcached
+ 
+ include ../common.mk
+ 
diff -Nru nagios-plugins-contrib-4.20120702/debian/patches/series nagios-plugins-contrib-4.20120702ubuntu1/debian/patches/series
--- nagios-plugins-contrib-4.20120702/debian/patches/series	2012-07-02 11:30:14.000000000 -0600
+++ nagios-plugins-contrib-4.20120702ubuntu1/debian/patches/series	2013-02-01 20:02:53.000000000 -0700
@@ -18,3 +18,4 @@
 check_haproxy/epn
 check_httpd_status/epn
 check_backuppc/use_nagios_plugins
+check_memcached/ld-as-needed

Reply via email to