1
0
mirror of https://github.com/golang/go synced 2024-11-25 12:07:56 -07:00

fix build

R=rsc
DELTA=5  (5 added, 0 deleted, 0 changed)
OCL=35387
CL=35401
This commit is contained in:
Rob Pike 2009-10-06 15:08:32 -07:00
parent 650bff6aa9
commit 0bf5553538

View File

@ -99,6 +99,8 @@ main(int argc, char *argv[])
INITDAT = -1;
INITRND = -1;
INITENTRY = 0;
libdir[nlibdir++] = "."; // look in dot first
ARGBEGIN {
default:
c = ARGC();
@ -151,6 +153,9 @@ main(int argc, char *argv[])
if(strcmp(goarch, thestring) != 0)
print("goarch is not known: %s\n", goarch);
// put goroot in the libdir list.
libdir[nlibdir++] = smprint("%s/pkg/%s_%s", goroot, goos, goarch);
if(HEADTYPE == -1) {
HEADTYPE = 2;
if(strcmp(goos, "linux") == 0)