Subject: Re: How to force compilation of a package with lang/gcc?
To: Ingolf Steinbach <ingolf@steinba.ch>
From: Chris Pinnock <cjep@fawlty.net>
List: tech-pkg
Date: 01/04/2003 12:21:29
--vGgW1X5XWziG23Ko
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Jan 04, 2003 at 11:49:27AM +0100, Ingolf Steinbach wrote:
> Hi,
>=20
> MESSAGE in lang/gcc informs to .include "/usr/pkg/etc/gcc-2.95.3.mk"
> in the Makefile. For Makefiles in pkgsrc, this seems to be not suitable:
> 1) absolute path (without ${PREFIX})
> 2) ${PREFIX} cannot be used in the above .include as it is not yet known
>    when used before bsd.pkg.mk
> 3) inclusion of gcc-2.95.3.mk *after* bsd.pkg.mk does not change CC
> 4) still a compile-time dependency on lang/gcc is needed.
>=20
> What is the correct way to have a package compiled with lang/gcc?

You probably want to include ../../lang/gcc/buildlink2.mk rather than=20
gcc-2.95.3.mk.

best wishes,
Chris

--vGgW1X5XWziG23Ko
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (NetBSD)

iD8DBQE+FtHJloMtOdQmpCwRAgbsAJwKJ+ys4gMMfxCCMvAVsSo0824oxACfaRCM
pyXp6DMgE6D+Lc/eUxGFSc4=
=6GiI
-----END PGP SIGNATURE-----

--vGgW1X5XWziG23Ko--