From bfc473775111da4f13f7b7919247e86060f563df Mon Sep 17 00:00:00 2001 From: Holger Lubitz Date: Sun, 17 Jun 2007 22:15:29 +0200 Subject: [PATCH] Update Makefile for compilation on ARCH=x86_64 --- src/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) 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