Re: [gentoo-ia64] non-PIC code in shared libraries

Aron Griffis <[email protected]>
Newsgroups gmane.linux.gentoo.alpha
Message-ID <20031210211152.GC10626@time>
Jon Portnoy wrote:	[Wed Dec 10 2003, 04:08:51PM EST]
> On Wed, Dec 10, 2003 at 03:59:46PM -0500, Aron Griffis wrote:
> > Jon Portnoy wrote:	[Wed Dec 10 2003, 12:47:15PM EST]
> > > AMD64 has the same issue. A number of applications have been patched to 
> > > build properly (using -fPIC for libs). For example, look at the ncurses 
> > > ebuild:
> > > 
> > >         # Shared objects are compiled properly with -fPIC, but
> > >         # standard libs also require this.
> > >         if [ "${ARCH}" = "amd64" ]
> > >         then
> > >                         append-flags -fPIC
> > >         fi
> > 
> > Clearly we need a generic check for 64-bit.  There are ebuilds
> > throughout the tree that add -fPIC for some mix of amd64, alpha or ia64.
> > Do we have something already that would suffice?
> > 
> 
> A good idea, but I don't think we have anything currently.
> 
> > Probably the best would be to abstract this into portage so that the
> > implementation could change as needed.  Ideas?
> 
> Ideally we could come up with a good way to check in an eclass and just 
> call that eclass in ebuilds that need it.

That would probably be best (at least for the near-term) since it would
work instantly on all versions of portage out there.

I'll write up the eclass and commit it.

-- 
Aron Griffis
Gentoo Linux Developer (alpha / ia64 / ruby / vim)
Key fingerprint = E3B6 8734 C2D6 B5E5 AE76  FB3A 26B1 C5E3 2010 4EB0
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/14wYJrHF4yAQTrARAuU9AKCzLHhsetW6wYi7xHh1iZzgBSdougCgy0c/
WIigtwx0LhHtZPeL2fw3iAY=
=lo2q
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.