[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: pkgsrc/graphics/xzgv
On Fri, 16 Dec 2011 06:58:13 +0900, John Marino <marino%netbsd.org@localhost>
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
graphics/xzgv: Directly link libraries as required for default ld v2.22
+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?
Indirect / recursive linking is no longer the default for ld starting
Ld will stop with an error if it encounters a symbol not present in any
listed libraries when previously it would have recursively searched
those libraries were linked to. The error is clear, and it says which
the symbol located. Something is using a libm function and libX11
this particular case.
I'm not tested yet on DragonFly, but on NetBSD, -lm and -lX11 are included in
`pkg-config --libs gtk+-2.0' and this package is using it as a part of LDFLAGS.
I don't know why not for your environment.
OBATA Akio / obache%NetBSD.org@localhost
Main Index |
Thread Index |