Date: Tue, 6 Sep 2005 04:29:04 -0400 From: Kris Kennaway <kris@obsecurity.org> To: Tom St Denis <tomstdenis@gmail.com> Cc: shellreef+freebsd@gmail.com, freebsd-amd64@freebsd.org Subject: Re: [PATCH] LibTomCrypt on amd64 and -fPIC Message-ID: <20050906082904.GA27179@xor.obsecurity.org> In-Reply-To: <bd0cb795050905170173c9bebb@mail.gmail.com> References: <e7ce49350508241918610b1f4c@mail.gmail.com> <20050905235554.GA93379@dragon.NUXI.org> <bd0cb795050905170173c9bebb@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--mP3DRpeJDSE+ciuQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 05, 2005 at 08:01:23PM -0400, Tom St Denis wrote: > On 9/5/05, David O'Brien <obrien@freebsd.org> wrote: > > On Wed, Aug 24, 2005 at 07:18:18PM -0700, shellreef@gmail.com wrote: > > > To FreeBSD-amd64: Can we add -fPIC to make.conf? Are there any > > > side-effects? (I'd prefer this as I use packages and would prefer to > > > not compile from ports.) > >=20 > > No. -fPIC should only be used to build shared libraries. Not every > > since piece of code compiled for AMD64. >=20 > If the library doesn't build without -fPIC it's because they're using > a custom compiler. I've built LTC on 4.0.1, 3.4.4, 3.3.6 and 2.96 > boxes [it isn't stable on 4.01, 3.3.6 but it at least builds]. The issue is typically that the software tries to link a static library (i.e. one compiled without -fPIC) against relocatable objects (-fPIC), so the compiler version is not relevant. This is only an issue on some architectures like amd64, ia64 and sparc64. Anyway, this port does seem to compile as-is on amd64. Kris --mP3DRpeJDSE+ciuQ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDHVNPWry0BWjoQKURAmP4AJ0Rwu25ztDuNHXRXQVzhMZS6GqRYQCePRij k6tusGE3xYvAHO4F5QIeQdY= =DaLO -----END PGP SIGNATURE----- --mP3DRpeJDSE+ciuQ--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050906082904.GA27179>