Subject: Re: CVS commit: pkgsrc/mk
To: Matthias Drochner <drochner@netbsd.org>
From: grant beattie <grant@netbsd.org>
List: pkgsrc-changes
Date: 06/08/2003 01:54:58
On Fri, Jun 06, 2003 at 05:13:33PM +0000, Matthias Drochner wrote:

> Modified Files:
> 	pkgsrc/mk: defs.NetBSD.mk
> 
> Log Message:
> Introduce a variable "LINK_ALL_LIBGCC_HACK" which
> is "-Wl,--whole-archive -lgcc -Wl,--no-whole-archive" on
> NetBSD-1.5* and empty otherwise.
> This is needed on build of programs which dlopen() extension
> libraries.
> (Some pkgs do the libgcc linking already, but independantly
> of the OS version.)

I haven't looked at this, but on the surface it seems broken wrt
lang/gcc{,3}, as this would introduce a runtime dependency, but this
is not registered unless USE_GCC_SHLIB is defined.

either USE_GCC_SHLIB should be defined, or a cleaner solution found
(the latter would seem preferable, as this is a NetBSD specific
problem).

g.