Subject: Re: adding PIC flags
To: Dan McMahill <dmcmahill@netbsd.org>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: tech-pkg
Date: 03/25/2004 13:56:27
--JsihDCElWRmQcbOr
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

hi,

On Wed, Mar 24, 2004 at 07:19:00AM -0500, Dan McMahill wrote:
> Whats the prefered way to properly add PIC flags to a pkgsrc package
> now that pkgsrc works on multiple operating systems and at least
> partially with compilers other than gcc?  Should there be some sort of
> variable like 'USE_PIC' that will add the right magic flags, '-fPIC
> -DPIC' for gcc, to CFLAGS and FFLAGS?

buildlink3 does this for you.  see e.g.,

  pkgsrc/mk/buildlink3/sunpro-cc-post-logic


regards,

--=20
-- Lubomir Sedlacik <salo@Xtrmntr.org>                   --
--                  <salo@silcnet.org>                   --

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

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

iD8DBQFAYtb7iwjDDlS8cmMRAiteAKCIUPtp4UpDr4DrqHebCYRGptaUTACdE6dN
RFNAXgbOUxTYacwS8sDeipo=
=CofI
-----END PGP SIGNATURE-----

--JsihDCElWRmQcbOr--