From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24205 invoked by alias); 13 Jul 2011 23:10:07 -0000 Received: (qmail 24195 invoked by uid 22791); 13 Jul 2011 23:10:06 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.44.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 13 Jul 2011 23:09:51 +0000 Received: from kpbe12.cbf.corp.google.com (kpbe12.cbf.corp.google.com [172.25.105.76]) by smtp-out.google.com with ESMTP id p6DN9mUj008512 for ; Wed, 13 Jul 2011 16:09:49 -0700 Received: from iyh42 (iyh42.prod.google.com [10.241.50.234]) by kpbe12.cbf.corp.google.com with ESMTP id p6DN9lTS031525 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Wed, 13 Jul 2011 16:09:47 -0700 Received: by iyh42 with SMTP id 42so8637783iyh.25 for ; Wed, 13 Jul 2011 16:09:47 -0700 (PDT) Received: by 10.231.16.3 with SMTP id m3mr638151iba.195.1310598587283; Wed, 13 Jul 2011 16:09:47 -0700 (PDT) Received: from coign.google.com ([2620:0:1000:2301:21c:25ff:fe14:8d86]) by mx.google.com with ESMTPS id v3sm2176228ibh.67.2011.07.13.16.09.46 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 13 Jul 2011 16:09:46 -0700 (PDT) From: Ian Lance Taylor To: Per =?utf-8?Q?=C3=98yvind?= Karlsen Cc: binutils Subject: Re: gold library search path? References: Date: Thu, 14 Jul 2011 01:01:00 -0000 In-Reply-To: ("Per =?utf-8?Q?=C3=98yvind?= Karlsen"'s message of "Wed, 13 Jul 2011 23:52:37 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2011-07/txt/msg00137.txt.bz2 Per =C3=98yvind Karlsen writes: > I feel a bit silly for not being able to figure this out, trying > to go through the search over and over, googling and blah, > but I'm totally not able to figure out how to set the library search > of the gold linker during build..? > > Passing '--with-lib-path=3D/lib64:/usr/lib64:/usr/local/lib64:/usr/lib:/u= sr/local/lib' > to configure gives me the expected behaviour I want with the bfd linker, > but gold only wants to try search /lib & /usr/lib no matter what.. :| > > So that makes me wonder whether this actually might be a bug or not, > while still feeling a bit st00pid.. :p You're not stupid, there actually isn't a way to set gold's default library path using a configure option. I see that GNU ld does support a --with-lib-path configure option, and I would not be opposed to supporting it in gold either. The current default (/lib:/usr/lib, adjusted for any --sysroot option) is set in General_options::finalize in option.cc. Ian