Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Mar 2017 10:31:32 -0700
From:      Warner Losh <imp@bsdimp.com>
To:        Tijl Coosemans <tijl@freebsd.org>
Cc:        =?UTF-8?Q?Dag=2DErling_Sm=C3=B8rgrav?= <des@des.no>, ports@freebsd.org,  "freebsd-arch@freebsd.org" <arch@freebsd.org>, Baptiste Daroussin <bapt@freebsd.org>
Subject:   Re: manpath change for ports ?
Message-ID:  <CANCZdfqn53iitjOK1B3RuFFnpn5U-6Vs_L=HP%2BxrAaXXutW=tw@mail.gmail.com>
In-Reply-To: <20170308182124.79c4bc13@kalimero.tijl.coosemans.org>
References:  <20170306235610.cmpxk27jhoafel6l@ivaldir.net> <86mvcvojzt.fsf@desk.des.no> <20170308182124.79c4bc13@kalimero.tijl.coosemans.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Mar 8, 2017 at 10:21 AM, Tijl Coosemans <tijl@freebsd.org> wrote:
> On Wed, 08 Mar 2017 16:39:50 +0100 Dag-Erling Sm=C3=B8rgrav <des@des.no> =
wrote:
>> 4) Remove the hardcoded library path in lang/gcc*
>>
>> This makes it possible to work on software that includes both libraries
>> and programs while an earlier copy of the same software is already
>> installed.  With the current state of gcc, the programs you are working
>> on will be linked against the version of the library that's already
>> installed instead of the version you just compiled, and there is nothing
>> you can do to prevent it.  You won't notice anything if all you ever do
>> is "make && make install", because the new library will replace the old,
>> but if you try to run your program directly from the build tree, it will
>> use the wrong library.  This can be incredibly frustrating if you're not
>> aware of it - imagine you're trying to fix a bug in that library and no
>> matter what you do, your regression test keeps failing...
>
> Are you talking about gcc implicitly searching /usr/local/include and
> /usr/local/lib?

That's currently inconsistent between base gcc, clang, binutils and
ports versions. I forget which ones do and which ones don't search
automatically. IMHO, they all should.

Warner



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfqn53iitjOK1B3RuFFnpn5U-6Vs_L=HP%2BxrAaXXutW=tw>