Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update Makefile for compilation on ARCH=x86_64
  • Loading branch information
Holger Lubitz authored and Michael Brown committed Jul 9, 2007
1 parent 487dc5b commit bfc4737
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Makefile
Expand Up @@ -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
Expand Down

0 comments on commit bfc4737

Please sign in to comment.