Browse Source

Update Makefile for compilation on ARCH=x86_64

tags/v0.9.3
Holger Lubitz 17 years ago
parent
commit
bfc4737751
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      src/Makefile

+ 6
- 0
src/Makefile View File

21
 ARCH		:= $(shell uname -m | sed -e s,i[3456789]86,i386,)
21
 ARCH		:= $(shell uname -m | sed -e s,i[3456789]86,i386,)
22
 endif
22
 endif
23
 
23
 
24
+# handle x86_64 like i386, but set -m32 option for 32bit code only
25
+ifeq ($(ARCH),x86_64)
26
+ARCH		:= i386
27
+CFLAGS		+= -m32
28
+endif
29
+
24
 # Drag in architecture-specific Config
30
 # Drag in architecture-specific Config
25
 #
31
 #
26
 MAKEDEPS	+= arch/$(ARCH)/Config
32
 MAKEDEPS	+= arch/$(ARCH)/Config

Loading…
Cancel
Save