1 --- elilo/Make.defaults 2010-06-08 13:26:54.651037891 -0600
2 +++ /tmp/elilo-3.12/Make.defaults 2010-06-08 13:15:19.905132316 -0600
4 CDIR := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
7 -ARCH = $(shell uname -m | sed s,i[3456789]86,ia32,)
8 +HOSTARCH = $(shell dpkg-architecture -qDEB_BUILD_ARCH | sed s,i[3456789]86,ia32, | sed s,amd64,x86_64, )
9 +ARCH := $(shell dpkg-architecture -qDEB_BUILD_ARCH | sed s,i[3456789]86,ia32, | sed s,amd64,x86_64, )
10 INCDIR = -I. -I$(TOPDIR) -I$(EFIINC) -I$(EFIINC)/$(ARCH) -I$(EFIINC)/protocol -I$(TOPDIR)/efi110
11 CPPFLAGS = -DCONFIG_$(ARCH)
15 -CFLAGS = $(OPTIMFLAGS) -fno-strict-aliasing -fpic -fshort-wchar $(DEBUGFLAGS)
16 +CFLAGS = $(ARCH3264) $(OPTIMFLAGS) -fpic -fshort-wchar $(DEBUGFLAGS)
17 +ASFLAGS = $(ARCH3264)
18 LDFLAGS = -nostdlib -znocombreloc
23 # Use Modified binutils that supports x86_64 using UEFI ABI
24 ifeq ($(ARCH), x86_64)
25 + ifeq ($(HOSTARCH), ia32)
27 + LD3264 = -melf_x86_64
29 + GNUEFILIB := $(GNUEFILIB)64
30 + EFILIB := $(EFILIB)64
31 + EFICRT0 := $(EFICRT0)64
34 CFLAGS += -DEFI_FUNCTION_WRAPPER
35 OBJCOPY = /usr/bin/objcopy
39 + ifeq ($(HOSTARCH), x86_64)
43 + GNUEFILIB := /usr/lib32
44 + EFILIB := /usr/lib32
45 + EFICRT0 := /usr/lib32
50 GCC_VERSION=$(shell $(CROSS_COMPILE)$(CC) -v 2>&1 | fgrep 'gcc version' | cut -f3 -d' ' | cut -f1 -d'.')