diff options
Diffstat (limited to 'builder/build.go')
-rw-r--r-- | builder/build.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/builder/build.go b/builder/build.go index 54f5c101b..d16bf170b 100644 --- a/builder/build.go +++ b/builder/build.go @@ -176,11 +176,12 @@ func Build(pkgName, outpath, tmpdir string, config *compileopts.Config) (BuildRe defer unlock() libcDependencies = append(libcDependencies, libcJob) case "mingw-w64": - _, unlock, err := libMinGW.load(config, tmpdir) + job, unlock, err := libMinGW.load(config, tmpdir) if err != nil { return BuildResult{}, err } - unlock() + defer unlock() + libcDependencies = append(libcDependencies, job) libcDependencies = append(libcDependencies, makeMinGWExtraLibs(tmpdir, config.GOARCH())...) case "": // no library specified, so nothing to do |