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
.gitignore
*.[568ao]
*.ao
*.a[568o]
*.so
*.pyc
._*

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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