|   | 
      | 
  
  
      | 
      | 
  
 
     | 
    | 
  
  
     | 
    | 
  
  
    |   | 
      | 
  
  
    | 
         
xen-devel
[Xen-devel] [PATCH] build fixes for cross-compiling
 
I always have problems cross-compiling tools (I build everything on a
64-bit machine and generally target a 32-bit host), because all the
link steps are missing targets.  I've use this tiny patch on the base
of my workspaces.
To my knowledge, this doesn't break anything -- but who knows with
builds, particularly cross-compiling. I just thought I'd throw this
there in case others have the same issue and it doesn't affect
standard build environments.
diff -r a422e2a4451e config/x86_32.mk
--- a/config/x86_32.mk
+++ b/config/x86_32.mk
@@ -8,6 +8,7 @@ CONFIG_XCUTILS := y
 CONFIG_IOEMU := y
 CFLAGS += -m32 -march=i686
+LDFLAGS += -m32 -march=i686
 # Use only if calling $(LD) directly.
 LDFLAGS_DIRECT_OpenBSD = _obsd
diff -r a422e2a4451e config/x86_64.mk
--- a/config/x86_64.mk
+++ b/config/x86_64.mk
@@ -9,6 +9,7 @@ CONFIG_XCUTILS := y
 CONFIG_IOEMU := y
 CFLAGS += -m64
+LDFLAGS += -m64
 LIBLEAFDIR = $(LIBLEAFDIR_x86_64)
 LIBDIR = $(LIBDIR_x86_64)
 
 
build-fixes.patch 
Description: Binary data 
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
 
 |   
 
 | 
    | 
  
  
    |   | 
    |