aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2010-11-18 12:34:47 -0800
committerIan Lance Taylor <iant@golang.org>2010-11-18 12:34:47 -0800
commit1fab0cd12ac585068df138650a2a6d1dffa09fb3 (patch)
tree9a61713db3fb56166572dec9d1a997e3f35a65ef
parent553a88cfe7ba9ba75eb999cfeedae4f2808ee029 (diff)
downloadgo-1fab0cd12ac585068df138650a2a6d1dffa09fb3.tar.gz
go-1fab0cd12ac585068df138650a2a6d1dffa09fb3.zip
Makefiles: Don't define _64BIT now that 6c does it by default.
R=rsc CC=golang-dev https://golang.org/cl/3207041
-rw-r--r--src/Make.pkg3
-rw-r--r--src/pkg/runtime/Makefile4
2 files changed, 2 insertions, 5 deletions
diff --git a/src/Make.pkg b/src/Make.pkg
index 62fb68d4b3..f9711671ac 100644
--- a/src/Make.pkg
+++ b/src/Make.pkg
@@ -132,8 +132,7 @@ _cgo_export.o: _cgo_export.c _cgo_export.h
# added _cgo_defun.$O to $OFILES, and added the installed copy of
# package_x.so (built from x.cgo2.c) to $(INSTALLFILES).
-RUNTIME_CFLAGS_amd64=-D_64BIT
-RUNTIME_CFLAGS=-I"$(GOROOT)/src/pkg/runtime" $(RUNTIME_CFLAGS_$(GOARCH))
+RUNTIME_CFLAGS=-I"$(GOROOT)/src/pkg/runtime"
# Have to run gcc with the right size argument on hybrid 32/64 machines.
_CGO_CFLAGS_386=-m32
diff --git a/src/pkg/runtime/Makefile b/src/pkg/runtime/Makefile
index 58e0e76b51..a208458ed7 100644
--- a/src/pkg/runtime/Makefile
+++ b/src/pkg/runtime/Makefile
@@ -12,13 +12,11 @@ SIZE_amd64=64
SIZE_arm=32
SIZE=$(SIZE_$(GOARCH))
-# Setup CFLAGS. Add -D_64BIT on 64-bit platforms (sorry).
-CFLAGS_64=-D_64BIT
# TODO(kaib): fix register allocation to honor extern register so we
# can enable optimizations again.
CFLAGS_arm=-N
CFLAGS_windows=-D__WINDOWS__
-CFLAGS=-I$(GOOS) -I$(GOARCH) -I$(GOOS)/$(GOARCH) -wF $(CFLAGS_$(SIZE)) $(CFLAGS_$(GOARCH)) $(CFLAGS_$(GOOS))
+CFLAGS=-I$(GOOS) -I$(GOARCH) -I$(GOOS)/$(GOARCH) -wF $(CFLAGS_$(GOARCH)) $(CFLAGS_$(GOOS))
GOFILES=\
debug.go\