From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MTgG0-0007c1-Et for qemu-devel@nongnu.org; Wed, 22 Jul 2009 14:09:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MTgFv-0007X4-IX for qemu-devel@nongnu.org; Wed, 22 Jul 2009 14:09:35 -0400 Received: from [199.232.76.173] (port=37749 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MTgFv-0007Ww-CX for qemu-devel@nongnu.org; Wed, 22 Jul 2009 14:09:31 -0400 Received: from mail-qy0-f174.google.com ([209.85.221.174]:53182) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MTgFu-0002sZ-VX for qemu-devel@nongnu.org; Wed, 22 Jul 2009 14:09:31 -0400 Received: by qyk4 with SMTP id 4so457414qyk.4 for ; Wed, 22 Jul 2009 11:09:30 -0700 (PDT) Message-ID: <4A6755D7.8060101@codemonkey.ws> Date: Wed, 22 Jul 2009 13:09:27 -0500 From: Anthony Liguori MIME-Version: 1.0 References: <4A670CA3.6030800@codemonkey.ws> <4A674082.8070405@gnu.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH 00/37] Generate a proper LIBS variable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Juan Quintela Cc: Paolo Bonzini , qemu-devel@nongnu.org Juan Quintela wrote: > Anthony, what do you think of merging a search path like this: > > /usr/local/lib64;/lib64;/usr/lib64;/usr/local/lib;/lib;/usr/lib > > This seems more similar to the one that my linker has. > > Patch sent as new thread. > I'd rather see the us generate a config-host.ld that contained the output of ld --verbose -v | grep SEARCH_DIR and then do: diff --git a/x86_64.ld b/x86_64.ld index 878dafb..7920bdd 100644 --- a/x86_64.ld +++ b/x86_64.ld @@ -2,7 +2,7 @@ OUTPUT_FORMAT("elf64-x86-64", "elf64-x86-64", "elf64-x86-64") OUTPUT_ARCH(i386:x86-64) ENTRY(_start) -SEARCH_DIR("/lib64"); SEARCH_DIR("/usr/lib64"); SEARCH_DIR("/usr/local/lib64"); +INCLUDE "config-host.ld" SECTIONS { /* Read-only sections, merged into text segment: */ Regards, Anthony Liguori > Later, > > >