Package: xmlsec1 Version: 1.2.14-1.2 Severity: minor Tags: patch User: [email protected] Usertags: ld-as-needed
The makefile in /usr/share/doc/libxmlsec1-dev/examples does not compile when using the linker flag --as-needed. See: https://bugs.launchpad.net/ubuntu/+source/xmlsec1/+bug/884834 It uses LDFLAGS to link with libraries which is incorrect. libraries must be placed after objects needing their symbols. Using the variable LDLIBS will fix this issue: --- old/Makefile 2011-11-02 21:37:21.921330577 +0100 +++ new/Makefile 2011-11-02 21:37:08.605330608 +0100 @@ -11,7 +11,7 @@ CC = gcc CFLAGS += -g $(shell xmlsec1-config --cflags) -DUNIX_SOCKETS -LDFLAGS += -g $(shell xmlsec1-config --libs) +LDLIBS += -g $(shell xmlsec1-config --libs) all: $(PROGRAMS)
signature.asc
Description: OpenPGP digital signature

