public inbox for gentoo-alpha@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-alpha] Re: [gentoo-ia64] non-PIC code in shared libraries
       [not found]     ` <20031210210851.GA30530@cerberus.oppresses.us>
@ 2003-12-10 21:11       ` Aron Griffis
  2003-12-11  0:01         ` Aron Griffis
  0 siblings, 1 reply; 2+ messages in thread
From: Aron Griffis @ 2003-12-10 21:11 UTC (permalink / raw
  To: gentoo-ia64; +Cc: gentoo-amd64, gentoo-alpha

[-- Attachment #1: Type: text/plain, Size: 1460 bytes --]

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


[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [gentoo-alpha] Re: [gentoo-ia64] non-PIC code in shared libraries
  2003-12-10 21:11       ` [gentoo-alpha] Re: [gentoo-ia64] non-PIC code in shared libraries Aron Griffis
@ 2003-12-11  0:01         ` Aron Griffis
  0 siblings, 0 replies; 2+ messages in thread
From: Aron Griffis @ 2003-12-11  0:01 UTC (permalink / raw
  To: gentoo-ia64, gentoo-alpha

[-- Attachment #1: Type: text/plain, Size: 445 bytes --]

Done.  I wrote 64-bit.eclass and demonstrated its use in
ncurses-5.3-r4.ebuild:

    inherit flag-o-matic 64-bit

    src_compile() {
        64-bit && append-flags -fPIC
        ...
    }

Aron

P.S. Jon, please forward to gentoo-amd64.  I can't post there because
I'm not subscribed.

-- 
Aron Griffis
Gentoo Linux Developer (alpha / ia64 / ruby / vim)
Key fingerprint = E3B6 8734 C2D6 B5E5 AE76  FB3A 26B1 C5E3 2010 4EB0


[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-12-11  0:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1429.129.94.176.249.1070941373.squirrel@secure.octopus.com.au>
     [not found] ` <20031210174715.GA23956@cerberus.oppresses.us>
     [not found]   ` <20031210205946.GB10626@time>
     [not found]     ` <20031210210851.GA30530@cerberus.oppresses.us>
2003-12-10 21:11       ` [gentoo-alpha] Re: [gentoo-ia64] non-PIC code in shared libraries Aron Griffis
2003-12-11  0:01         ` Aron Griffis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox