Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Mar 2010 01:02:17 +0000
From:      CeDeROM <tomek.cedro@gmail.com>
To:        Rene Ladan <r.c.ladan@gmail.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: default binutils - linker 2.15 versus 2.20
Message-ID:  <3fcfb0ba1003261802o76d7cbe4u7cf26141c6592340@mail.gmail.com>
In-Reply-To: <3fcfb0ba1003261721k2e05913ah3ebe32f4dba90635@mail.gmail.com>
References:  <3fcfb0ba1003251803p15b4012exf8cae140c6f88d32@mail.gmail.com> <e890cae61003260019u2bf532f7oaf61b305f786216a@mail.gmail.com> <3fcfb0ba1003261721k2e05913ah3ebe32f4dba90635@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Mar 27, 2010 at 12:21 AM, CeDeROM <tomek.cedro@gmail.com> wrote:
> On Fri, Mar 26, 2010 at 7:19 AM, Rene Ladan <r.c.ladan@gmail.com> wrote:
>> 2010/3/26 CeDeROM <tomek.cedro@gmail.com>:
>>> Hello world!
>>>
>>> I have problems building applications requiring ld 2.20 (located at
>>> /usr/local/bin) where ld 2.15 (located at /usr/bin) is being invoked
>>> with c++ (gcc4.2.1). Why there are two linkers on the system? Is it
>>> possible to update the default linker to version 2.20?

Ok, I've found few ways to accomplish this easily:
-use the "-B/usr/local/bin/" switch just as the -L and the -I
-use environment COMPILER_PATH or better GCC_EXEC_PATH to specify path
for programs executed internally by the gcc

Both of these solutions simply prepends specified path before the
environment data, so if the program is not found in the specified
path, it is still searched in standard order :-) Testing under way..

Best regards,
Tomek

-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info



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