浏览代码

Update Makefile for compilation on ARCH=x86_64

tags/v0.9.3
Holger Lubitz 18 年前
父节点
当前提交
bfc4737751
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6
    0
      src/Makefile

+ 6
- 0
src/Makefile 查看文件

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

正在加载...
取消
保存