summaryrefslogtreecommitdiffstats
path: root/src/Makefile
diff options
context:
space:
mode:
authorHolger Lubitz2007-06-17 22:15:29 +0200
committerMichael Brown2007-07-09 04:31:14 +0200
commitbfc473775111da4f13f7b7919247e86060f563df (patch)
tree99f5473f235ee80269789a8b4b77d16a994477a2 /src/Makefile
parentFix up iscsiboot missing prototype warnings (diff)
downloadipxe-bfc473775111da4f13f7b7919247e86060f563df.tar.gz
ipxe-bfc473775111da4f13f7b7919247e86060f563df.tar.xz
ipxe-bfc473775111da4f13f7b7919247e86060f563df.zip
Update Makefile for compilation on ARCH=x86_64
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
index fe730424..7b0caaf6 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -21,6 +21,12 @@ ifndef ARCH
ARCH := $(shell uname -m | sed -e s,i[3456789]86,i386,)
endif
+# handle x86_64 like i386, but set -m32 option for 32bit code only
+ifeq ($(ARCH),x86_64)
+ARCH := i386
+CFLAGS += -m32
+endif
+
# Drag in architecture-specific Config
#
MAKEDEPS += arch/$(ARCH)/Config