Gentoo Archives: gentoo-alpha

From: Aron Griffis <agriffis@g.o>
To: gentoo-ia64@g.o
Cc: gentoo-amd64@g.o, gentoo-alpha@g.o
Subject: [gentoo-alpha] Re: [gentoo-ia64] non-PIC code in shared libraries
Date: Wed, 10 Dec 2003 15:11:53
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

Replies

Subject Author
[gentoo-alpha] Re: [gentoo-ia64] non-PIC code in shared libraries Aron Griffis <agriffis@g.o>