From: Keir Fraser Subject: Re: Solaris build fix breaks Solaris Date: Tue, 13 Nov 2007 17:47:17 +0000 Message-ID: References: <20071113173243.GA27927@totally.trollied.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20071113173243.GA27927@totally.trollied.org.uk> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: John Levon Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 13/11/07 17:32, "John Levon" wrote: > On Tue, Nov 13, 2007 at 05:00:03AM +0000, Keir Fraser wrote: > > -melf_i386 translates to using an internal script, specifically > /usr/sfw/i386-pc-solaris2.11/lib/ldscripts/elf_i386.xc on > Solaris. Clearly -nostdlib means it can't be used, so it cannot find the > relevant script and gives up: > > hatchback:~ $ gld -nostdlib -melf_i386 a.o > gld: cannot open linker script file ldscripts/elf_i386.xc: No such file or > directory > > Since the -nostdlib is presumably there for a reason, the correct fix > seems to be to remove $(LDFLAGS_DIRECT), right? Huh, okay. Well actually I think -nostdlib is overkill. I didn't add it originally, and I hadn't realised that all it does is kill some default library paths. Xen itself is linked without -nostdlib, for example. I'll just kill uses of -nostdlib. -- Keir