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

[Xen-devel] [PATCH] 1 of 3 fix tools/Rules.mk for cross compilation

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] 1 of 3 fix tools/Rules.mk for cross compilation
From: Jerone Young <jyoung5@xxxxxxxxxx>
Date: Thu, 07 Jul 2005 00:35:43 -0500
Delivery-date: Thu, 07 Jul 2005 05:36:48 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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
This patch fixes linking issue when cross compiling. The tools are
calling gcc to link objects. So LDFLAGS has to change so that gcc
properly understands them, as our current situation does not work (at
least with gcc4).

oh gcc4 how I love you so.
You really make the code go.
If a day were ever bright
gcc4 would make no light.

Signed-off-by: Jerone Young <jyoung5@xxxxxxxxxx>
--- tools/Rules.mk.old  2005-07-06 23:25:08.000000000 -0500
+++ tools/Rules.mk      2005-07-06 23:44:53.000000000 -0500
@@ -7,12 +7,12 @@ XEN_LIBXC          = $(XEN_ROOT)/tools/l

ifeq ($(XEN_TARGET_ARCH),x86_32)
CFLAGS  += -m32 -march=i686
-LDFLAGS += -m elf_i386
+LDFLAGS += -m32
endif

ifeq ($(XEN_TARGET_ARCH),x86_64)
CFLAGS  += -m64
-LDFLAGS += -m elf_x86_64
+LDFLAGS += -m64
endif

X11_LDPATH = -L/usr/X11R6/$(LIBDIR)


-- 
Jerone Young
IBM Linux Technology Center
jyoung5@xxxxxxxxxx
512-838-1157 (T/L: 678-1157)


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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] 1 of 3 fix tools/Rules.mk for cross compilation, Jerone Young <=