Date: Fri, 31 Jul 2015 14:27:41 +0000 From: bugzilla-noreply@freebsd.org To: gnome@FreeBSD.org Subject: maintainer-feedback requested: [Bug 202006] textproc/libxml2: xml2-config libs output lists private libraries causing overlinking Message-ID: <bug-202006-6497-z6yq31Ab5h@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-202006-6497@https.bugs.freebsd.org/bugzilla/> References: <bug-202006-6497@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
Kubilay Kocak <koobs@FreeBSD.org> has reassigned Bugzilla Automation <bugzilla@FreeBSD.org>'s request for maintainer-feedback to gnome@FreeBSD.org: Bug 202006: textproc/libxml2: xml2-config libs output lists private libraries causing overlinking https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=202006 --- Description --- net/asterisk was found to be linking to libiconv.so even after *many* attempts to disable it. Investigation revealed the following xml2-config output as the root cause, evidenced in config.log: LIBXML2_LIB='-L/usr/local/lib -lxml2 -lz -L/usr/local/lib -liconv -lm' libxml2 ships a pkg-config file (libxml-2.0.pc) that correctly doesn't list its private library dependencies in --libs output. Unfortunately, xml2-config does not, returning the full output of the XML_LIBS value provided in the Makefile, derived from ./configure output. This overlinking issue affects any dependent ports that use xml2-config to obtain compile / link flags.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-202006-6497-z6yq31Ab5h>