Subject: Re: Dependencies on GCC shared libraries for Packages.txt?
To: None <tech-pkg@netbsd.org>
From: Soren Jacobsen <snj@pobox.com>
List: tech-pkg
Date: 04/08/2004 16:22:55
On 04/08 09:56, Jeremy C. Reed wrote:
> My Packages.txt had this patch?
>
> Is this still correct?
>
> + 10.12.1 Dependencies on GCC shared libraries
> + ============================================
> +
> +If a package uses the shared g++ libraries from a gcc package
> +provided by pkgsrc, then define USE_GCC_SHLIB. This registers a
> +runtime dependency on the compiler package if it is from pkgsrc.
Here's a sniplet from mk/compiler.mk:
# XXX Add this gross and completely inaccurate hack. Packages that
# XXX set USE_GCC_SHLIB should be adjusted to set USE_LANGUAGES
# XXX correctly (most likely by saying it needs either "c++" or
# XXX "c c++"). This is here for now so that ~85 packages won't
# XXX suddenly break.
#
.if defined(USE_GCC_SHLIB)
USE_LANGUAGES?= c c++
.endif