Remove -m32 from the CC variable globally.
authorH. Peter Anvin <hpa@zytor.com>
Mon, 29 Jan 2007 00:53:07 +0000 (16:53 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Mon, 29 Jan 2007 00:53:07 +0000 (16:53 -0800)
memdisk/Makefile
sample/Makefile

index f628ff2..b983dfd 100644 (file)
@@ -1,6 +1,6 @@
 ## -----------------------------------------------------------------------
 ##
-##   Copyright 2001-2004 H. Peter Anvin - All Rights Reserved
+##   Copyright 2001-2007 H. Peter Anvin - All Rights Reserved
 ##
 ##   This program is free software; you can redistribute it and/or modify
 ##   it under the terms of the GNU General Public License as published by
@@ -19,8 +19,8 @@ M32     := $(call gcc_ok,-m32,)
 ALIGN   := $(call gcc_ok,-falign-functions=0 -falign-jumps=0 -falign-loops=0,-malign-functions=0 -malign-jumps=0 -malign-loops=0)
 FREE    := $(call gcc_ok,-ffreestanding,)
 
-CC       = gcc $(M32) $(FREE)
-CFLAGS   = -g -W -Wall -Wno-sign-compare \
+CC       = gcc
+CFLAGS   =  $(M32) $(FREE) -g -W -Wall -Wno-sign-compare \
           -Os -fomit-frame-pointer -march=i386 $(ALIGN) \
           -DVERSION='"$(VERSION)"' -DDATE='"$(DATE)"'
 LDFLAGS  = -g
index b92f820..1408906 100644 (file)
@@ -19,12 +19,12 @@ gcc_ok   = $(shell if gcc $(1) -c -x c /dev/null -o /dev/null 2>/dev/null; \
 
 M32       := $(call gcc_ok,-m32,) $(call gcc_ok,-ffreestanding,)
 
-CC         = gcc $(M32)
+CC         = gcc
 LD         = ld -m elf_i386
 AR        = ar
 NASM      = nasm
 RANLIB    = ranlib
-CFLAGS     = -W -Wall -march=i386 -Os -fomit-frame-pointer -I../com32/include
+CFLAGS     = $(M32) -W -Wall -march=i386 -Os -fomit-frame-pointer -I../com32/include
 SFLAGS     = -march=i386
 LDFLAGS    = -s
 OBJCOPY    = objcopy