OSDN Git Service

libgo: Update to weekly.2012-01-15.
[pf3gnuchains/gcc-fork.git] / libgo / go / go / build / build.go
index 5301ab5..9515a7e 100644 (file)
@@ -396,8 +396,7 @@ func (b *build) cgo(cgofiles, cgocfiles []string) (outGo, outObj []string) {
                Output: output,
        })
        outGo = append(outGo, gofiles...)
-       exportH := filepath.Join(b.path, "_cgo_export.h")
-       b.script.addIntermediate(defunC, exportH, b.obj+"_cgo_flags")
+       b.script.addIntermediate(defunC, b.obj+"_cgo_export.h", b.obj+"_cgo_flags")
        b.script.addIntermediate(cfiles...)
 
        // cc _cgo_defun.c