From 74a23646bcfc11262fd43737c7fcee0b9783e943 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 30 Apr 2010 12:48:03 -0700 Subject: [PATCH] 8l: fix absolute path detection on Windows Fixes #755. R=ken2 CC=golang-dev https://golang.org/cl/965047 --- src/cmd/ld/lib.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cmd/ld/lib.c b/src/cmd/ld/lib.c index 18c42551616..c13cd11c797 100644 --- a/src/cmd/ld/lib.c +++ b/src/cmd/ld/lib.c @@ -103,6 +103,10 @@ addlib(char *src, char *obj) sprint(name, ""); i = 1; } else + if(isalpha(histfrog[0]->name[1]) && histfrog[0]->name[2] == ':') { + strcpy(name, histfrog[0]->name+1); + i = 1; + } else if(histfrog[0]->name[1] == '.') { sprint(name, "."); i = 0;