pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: general problem with pkgsrc on 64bit linux
Tobias Nygren <tnn%NetBSD.org@localhost> writes:
> On 20 Jan 2008 10:32:34 -0600
> russell_mcmanus%yahoo.com@localhost wrote:
>
> > Joerg Sonnenberger <joerg%britannica.bec.de@localhost> writes:
> >
> > > On Fri, Jan 18, 2008 at 05:15:05PM -0600,
> > > russell_mcmanus%yahoo.com@localhost wrote:
> > > > I'm having trouble compiling a bunch of pkgsrc packages on 64 bit
> > > > linux. I think it's because /usr/lib64 is being inserted before the
> > > > pkgsrc lib64 directory in some cases.
> > >
> > > pkgsrc is not using lib64. But yeah, it can be a hassle if /usr/lib64 is
> > > added before $PREFIX/lib.
> >
> > It's more than just a hassle, many packages won't compile!
> >
> > Unfortunately, although my knowledge is growing, at this time I only
> > know a little bit about the internals of pkgsrc. Any ideas how I can
> > get pkgsrc to stop inserting /usr/lib64 before $PREFIX/lib?
>
> If all that's needed is to remove occurrences of -L/usr/lib64 then
> the wrapper framework should be able to do it for you.
> Try something like this in mk.conf:
> BUILDLINK_TRANSFORM+=rm:-L/usr/lib64
I just gave this a try by adding the following two lines to mk.conf:
BUILDLINK_TRANSFORM+=rm:-L/usr/lib64
BUILDLINK_TRANSFORM+=rm:-Wl,-R/usr/lib64
But it didn't work. In fact the error was the same as earlier.
Perhaps this directory is not inserted by the buildlink process?
Besides, after thinking about this a bit, it probably isn't right in
general to remove /usr/lib64 because there are system supplied
libraries there which are necessary.
What we really want to do is to change the order in which the pkgsrc
lib64 directory and the system lib64 director appear. Any ideas about
how to achieve this?
-russ
Home |
Main Index |
Thread Index |
Old Index