On 12/15/2011 10:14 PM, Thomas Klausner wrote:
On Thu, Dec 15, 2011 at 06:52:35PM +0000, John Marino wrote:
Module Name: pkgsrc
Committed By: marino
Date: Thu Dec 15 18:52:35 UTC 2011
Modified Files:
pkgsrc/graphics/xzgv: Makefile
Log Message:
graphics/xzgv: Directly link libraries as required for default ld v2.22
This adds:
+LDFLAGS+= -lm -lX11 # explicitly list for ld v2.22
The package just includes gtk2/buildlink3.mk.
I think that gtk2 can be built against different backends and libX11 is just
one of them (think OS X).
I have doubts that this change is correct (perhaps other similar ones as well).
Why does Dragonfly ld 2.22 need this?
Thomas
Indirect / recursive linking is no longer the default for ld starting
with 2.22.
Ld will stop with an error if it encounters a symbol not present in any
of the
listed libraries when previously it would have recursively searched
libraries
those libraries were linked to. The error is clear, and it says which
library
the symbol located. Something is using a libm function and libX11
function in
this particular case.