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] [PATCH] xenpaging: correct order of linker options to av

To: Olaf Hering <olaf@xxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] xenpaging: correct order of linker options to avoid link errors with recent toolchains
From: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Date: Wed, 28 Jul 2010 15:02:16 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 28 Jul 2010 07:06:15 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20100728125517.GB1949@xxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Newsgroups: chiark.mail.xen.devel
References: <20100728125517.GB1949@xxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Olaf Hering writes ("[Xen-devel] [PATCH] xenpaging: correct order of linker 
options to avoid link errors with recent toolchains"):
> Fix link error in openSuSE 11.2. 
> The order of objects and linked libraries is important with recent toolchain
> when --as-needed is used.

>  xenpaging: $(OBJS)
> -     $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
> +     $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)

Thanks, but once again, LDFLAGS belongs at the beginning and what's
needed is to introduce a *_LIBS variable.

Ian.

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