gc, cc: avoid using the wrong library when building the compilers

This can happen on Plan 9 if we we're building
with the 32-bit and 64-bit host compilers, one
after the other.

R=rsc
CC=golang-dev
https://golang.org/cl/5599053
This commit is contained in:
Anthony Martin 2012-02-01 04:14:37 -08:00
parent 2f2b6e55ef
commit e280035fc1
10 changed files with 11 additions and 9 deletions

View file

@ -3,7 +3,7 @@ syntax:glob
.git .git
.gitignore .gitignore
*.[568ao] *.[568ao]
*.ao *.a[568o]
*.so *.so
*.pyc *.pyc
._* ._*

View file

@ -26,7 +26,7 @@ OFILES=\
../5l/enam.$O\ ../5l/enam.$O\
LIB=\ LIB=\
../cc/cc.a\ ../cc/cc.a$O\
include ../../Make.ctool include ../../Make.ctool

View file

@ -28,7 +28,7 @@ OFILES=\
reg.$O\ reg.$O\
LIB=\ LIB=\
../gc/gc.a\ ../gc/gc.a$O\
include ../../Make.ctool include ../../Make.ctool

View file

@ -28,7 +28,7 @@ OFILES=\
../6l/enam.$O\ ../6l/enam.$O\
LIB=\ LIB=\
../cc/cc.a\ ../cc/cc.a$O\
include ../../Make.ctool include ../../Make.ctool

View file

@ -27,7 +27,7 @@ OFILES=\
reg.$O\ reg.$O\
LIB=\ LIB=\
../gc/gc.a\ ../gc/gc.a$O\
include ../../Make.ctool include ../../Make.ctool

View file

@ -29,7 +29,7 @@ OFILES=\
../8l/enam.$O\ ../8l/enam.$O\
LIB=\ LIB=\
../cc/cc.a\ ../cc/cc.a$O\
include ../../Make.ctool include ../../Make.ctool

View file

@ -28,7 +28,7 @@ OFILES=\
reg.$O\ reg.$O\
LIB=\ LIB=\
../gc/gc.a\ ../gc/gc.a$O\
include ../../Make.ctool include ../../Make.ctool

View file

@ -5,7 +5,7 @@
include ../../Make.inc include ../../Make.inc
O:=$(HOST_O) O:=$(HOST_O)
LIB=cc.a LIB=cc.a$O
HFILES=\ HFILES=\
cc.h\ cc.h\

View file

@ -5,7 +5,7 @@
include ../../Make.inc include ../../Make.inc
O:=$(HOST_O) O:=$(HOST_O)
LIB=gc.a LIB=gc.a$O
HFILES=\ HFILES=\
go.h\ go.h\

View file

@ -4,6 +4,8 @@
#include <bio.h> #include <bio.h>
#pragma lib "../gc/gc.a$O"
#undef OAPPEND #undef OAPPEND
// avoid <ctype.h> // avoid <ctype.h>