diff options
author | Alex Brainman <alex.brainman@gmail.com> | 2011-02-24 16:10:30 +1100 |
---|---|---|
committer | Alex Brainman <alex.brainman@gmail.com> | 2011-02-24 16:10:30 +1100 |
commit | 9077a9f64d2c78f3dd1c34327976c0f896c58be3 (patch) | |
tree | 1c8a6a56f0a6c28f38bbad242b3e8fdb5254786a /src/cmd/ld/lib.c | |
parent | b3e5db142baa77efe45e59e50d7365d8d1756db0 (diff) | |
download | go-9077a9f64d2c78f3dd1c34327976c0f896c58be3.tar.gz |
8l/6l: new -Hwindowsgui flag allows to build windows gui pe
Fixes issue 1516.
R=rsc, mattn
CC=golang-dev
http://codereview.appspot.com/4214041
Diffstat (limited to 'src/cmd/ld/lib.c')
-rw-r--r-- | src/cmd/ld/lib.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cmd/ld/lib.c b/src/cmd/ld/lib.c index 998e28cf1..39593085d 100644 --- a/src/cmd/ld/lib.c +++ b/src/cmd/ld/lib.c @@ -1271,8 +1271,10 @@ headtype(char *name) int i; for(i=0; headers[i].name; i++) - if(strcmp(name, headers[i].name) == 0) + if(strcmp(name, headers[i].name) == 0) { + headstring = headers[i].name; return headers[i].val; + } fprint(2, "unknown header type -H %s\n", name); errorexit(); return -1; // not reached |