WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Solaris build fix breaks Solaris

To: John Levon <levon@xxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Solaris build fix breaks Solaris
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Tue, 13 Nov 2007 17:47:17 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 13 Nov 2007 09:48:14 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20071113173243.GA27927@xxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcgmHTs/ehclUpIQEdytjwAX8io7RQ==
Thread-topic: [Xen-devel] Solaris build fix breaks Solaris
User-agent: Microsoft-Entourage/11.3.6.070618
On 13/11/07 17:32, "John Levon" <levon@xxxxxxxxxxxxxxxxx> 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



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel