Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Sep 2009 11:12:16 -0500 (CDT)
From:      Loren James Rittle <rittle@latour.labs.mot.com>
To:        Gerald Pfeifer<gerald@pfeifer.com>
Cc:        ports@freebsd.org, jasonh@DataIX.net
Subject:   Re: Need to use some library path before /usr/lib
Message-ID:  <200909211612.n8LGCGXT009692@latour.labs.mot.com>
In-Reply-To: <alpine.LSU.1.99.0909202328340.5359@acrux.dbai.tuwien.ac.at> (message from Gerald Pfeifer on Sun, 20 Sep 2009 23:45:31 %2B0200 (CEST))
References:  <alpine.LSU.1.99.0909171832060.15831@acrux.dbai.tuwien.ac.at> <alpine.BSF.2.00.0909172117140.1520@qvzrafvba.5c.ybpny> <alpine.BSF.2.00.0909172139010.1520@qvzrafvba.5c.ybpny> <alpine.LSU.1.99.0909202328340.5359@acrux.dbai.tuwien.ac.at>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <alpine.LSU.1.99.0909202328340.5359@acrux.dbai.tuwien.ac.at>,
Gerald Pfeifer<gerald@pfeifer.com> writes:

> On Thu, 17 Sep 2009, Jason J. Hellenthal wrote:
>> Something like the following.
>> 
>> [/usr/local/bin/]
>> libstdc++.so            /usr/local/lib/gcc44/libstdc++.so
>> libstdc++.so.6          /usr/local/lib/gcc44/libstdc++.so.6

> That looks quite nice, and I was going to use that, alas I cannot
> seem to make it work.  Is it possible that libmap.conf does not work
> when the name on the left-hand side is the same as on the right-hand
> side?

Why don't you just install /usr/local/lib/gcc44/libstdc++.so with a
different version number?  There is no requirement to sequentially
assign numbers thus: use 10MmX where X is the number assigned by GNU
and Mm is the major/minor number as used by the port.  Then, install
in standard port place and let standard rules find the right library.
(e.g. lang/gcc44 would use: /usr/local/lib/libstdc++.so.10446;
lang/gcc45 would use: /usr/local/lib/libstdc++.so.10456)

>> On a second note. It would be real nice if the install of a second/third 
>> compiler would get installed into its own directory rather than placing 
>> executables in /usr/local/bin/ place them /usr/local/lib/gcc44/bin and 
>> create the symlinks to them. This would at least help the libmap issue 
>> and gcc44 for several ports (just building).

> It wouldn't really help since the resulting binaries need the very same 
> workaround.

>> Now for a port running (octave as example) have that port spam libmap.conf
>> with the proper configuration for just that port the same way perl does to
>> make.conf.

> That might work, though it looks like a lot of work.  It occurs to me
> we really need to set this globally.  That is one of the implications
> those that always pushed for having ports use a distinct compiler may
> have missed.  That, or using -rpath.

> Loren, how would we best have GCC automatically add 
>   -rpath=/usr/local/lib/gcc44
> to every invocation?  Presumably spec magic?

I can't vouch for having tested it recently (or ever) but:

Add --enable-rpath to the configure line.

Regards,
Loren



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909211612.n8LGCGXT009692>