From 5bb01091e8b8c2c16863be05f8859742e220f55a Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Sat, 15 Mar 2008 18:00:56 +0000 Subject: [PATCH] syslinux: fixed to cross compile for 64bits they define LD=ld -melf_i386, which we override, so we have to override it correctly. --- x86/syslinux/syslinux.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/x86/syslinux/syslinux.conf b/x86/syslinux/syslinux.conf index e502d3100..1d0f61f94 100644 --- a/x86/syslinux/syslinux.conf +++ b/x86/syslinux/syslinux.conf @@ -24,3 +24,6 @@ makeopt= var_remove GCC2_WRAPPER_INSERT ' ' "-fstack-protector" var_remove GCC3_WRAPPER_INSERT ' ' "-fstack-protector" +# they define LD=ld -m elf_i386 on every Makefile, which we override. +# $(CC) is called with -m32, so if we drop the -melf_i386, they wont link +export LD="$LD -m elf_i386"