[Pkg-nagios-devel] Bug#699580: Resolve linking issues with --as-needed

Adam Conrad adconrad at debian.org
Sat Feb 2 03:31:25 UTC 2013


Package: nagios-plugins-contrib
Version: 4.20120702
Severity: normal
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nagios-plugins-contrib_4.20120702ubuntu1.debdiff
Type: text/x-diff
Size: 1306 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/attachments/20130201/f9d3c643/attachment.diff>


More information about the Pkg-nagios-devel mailing list