From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MTtjX-0002xd-3Y for qemu-devel@nongnu.org; Thu, 23 Jul 2009 04:32:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MTtjR-0002ue-5J for qemu-devel@nongnu.org; Thu, 23 Jul 2009 04:32:57 -0400 Received: from [199.232.76.173] (port=37694 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MTtjQ-0002uU-VL for qemu-devel@nongnu.org; Thu, 23 Jul 2009 04:32:52 -0400 Received: from mx2.redhat.com ([66.187.237.31]:60014) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MTtjQ-0005C6-JR for qemu-devel@nongnu.org; Thu, 23 Jul 2009 04:32:52 -0400 Message-ID: <4A681719.5050700@redhat.com> Date: Thu, 23 Jul 2009 09:54:01 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH 0/3 v3] Change search path for libraries for x86_64 linker script List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Juan Quintela Cc: aliguori@us.ibm.com, qemu-devel@nongnu.org > As requested for Anthony, we use as search path the output of: > > ld --verbose -v | grep SEARCH_PATH > > Anthony suggestion was to use a INCLUDE in the linker script, but it got > complicated because we have a relative path, and we want to get it working > with VPATH .... > > Then I decided to use a second linker script for the search path instead of > one INCLUDE. I don't understand one thing. Is this patch now using the linker script for all architectures? If so, it should be enough to call it LDFLAGS_USER and add LDFLAGS+=$(USER_LDFLAGS) where the configuration of linker scripts used to be done in the Makefile--or not? BTW, maybe now the -Wl,-shared trick for self-virtualization can be replaced with -fpie (position independent executable)? Paolo