From owner-freebsd-ports@FreeBSD.ORG Sat Mar 27 01:02:19 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 43051106566B for ; Sat, 27 Mar 2010 01:02:19 +0000 (UTC) (envelope-from tomek.cedro@gmail.com) Received: from mail-fx0-f225.google.com (mail-fx0-f225.google.com [209.85.220.225]) by mx1.freebsd.org (Postfix) with ESMTP id C5C588FC18 for ; Sat, 27 Mar 2010 01:02:18 +0000 (UTC) Received: by fxm25 with SMTP id 25so184037fxm.3 for ; Fri, 26 Mar 2010 18:02:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:cc:content-type; bh=/i7wP1MVg3pgEHKyqwWc3v1OslD9hqeoFekIVWlGMBQ=; b=ZxsGTFbkeOl4kRmUI3uW3qRCJkSTMEetGCKJ6/a3kyelfH+MMfXzSYOClPIk0BVLG8 +Vj5rRBAB4JTrU8dKyxZopGwuNAt0X+x6IVhtI8Q+MbG94HYHOhczTbysvTvw0SmNItH Lh1rwYMWZncF7h8L6BFST+KL88gfsaUA7GWqM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=gPyu/GQSYsMCTCFgpCP34awliAif8Y12eSpItWhFgUO64/1FcLqegSIrrqpyVPHe5g JHx0gYWnC98bh/EAe2SQfB4U9JCNGdyx70vyYk6ZHx1oxoLgbCBOwilbmavA/U6Sv8td AfThSRb2wyWfkUquhj/4Z8E0ME6myJN+4lIYo= MIME-Version: 1.0 Received: by 10.223.121.197 with HTTP; Fri, 26 Mar 2010 18:02:17 -0700 (PDT) In-Reply-To: <3fcfb0ba1003261721k2e05913ah3ebe32f4dba90635@mail.gmail.com> References: <3fcfb0ba1003251803p15b4012exf8cae140c6f88d32@mail.gmail.com> <3fcfb0ba1003261721k2e05913ah3ebe32f4dba90635@mail.gmail.com> Date: Sat, 27 Mar 2010 01:02:17 +0000 Received: by 10.223.75.15 with SMTP id w15mr1720689faj.70.1269651737642; Fri, 26 Mar 2010 18:02:17 -0700 (PDT) Message-ID: <3fcfb0ba1003261802o76d7cbe4u7cf26141c6592340@mail.gmail.com> From: CeDeROM To: Rene Ladan Content-Type: text/plain; charset=UTF-8 Cc: freebsd-ports@freebsd.org Subject: Re: default binutils - linker 2.15 versus 2.20 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Mar 2010 01:02:19 -0000 On Sat, Mar 27, 2010 at 12:21 AM, CeDeROM wrote: > On Fri, Mar 26, 2010 at 7:19 AM, Rene Ladan wrote: >> 2010/3/26 CeDeROM : >>> 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