From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4901 invoked by alias); 14 Jul 2011 02:18:09 -0000 Received: (qmail 4893 invoked by uid 22791); 14 Jul 2011 02:18:08 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-qw0-f41.google.com (HELO mail-qw0-f41.google.com) (209.85.216.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 14 Jul 2011 02:17:54 +0000 Received: by qwa26 with SMTP id 26so4164657qwa.0 for ; Wed, 13 Jul 2011 19:17:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.44.197 with SMTP id b5mr1529418qcf.117.1310609872901; Wed, 13 Jul 2011 19:17:52 -0700 (PDT) Received: by 10.229.52.79 with HTTP; Wed, 13 Jul 2011 19:17:52 -0700 (PDT) In-Reply-To: References: Date: Thu, 14 Jul 2011 02:53:00 -0000 Message-ID: Subject: Re: gold library search path? From: =?ISO-8859-1?Q?Per_=D8yvind_Karlsen?= To: Ian Lance Taylor Cc: binutils Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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/msg00140.txt.bz2 2011/7/14 Ian Lance Taylor : > Per =D8yvind 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:/= usr/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. =A0The current > default (/lib:/usr/lib, adjusted for any --sysroot option) is set in > General_options::finalize in option.cc. Ah, that explains it, I think that was where I found the traces of it in the code, but I figured that there had to like more "proper" and some actual "correct" place to do it. I guess I'll just patch option.cc for now, while awaiting for gold to suppo= rt the --with-lib-path option as well. :o) -- Regards, Per =D8yvind