[Pkg-nagios-devel] Bug#699580: Resolve linking issues with --as-needed
adconrad at debian.org
Sat Feb 2 03:31:25 UTC 2013
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.
-- 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...
Size: 1306 bytes
Desc: not available
More information about the Pkg-nagios-devel