build.go: better rename of library objects

This commit is contained in:
Giacomo Tesio 2017-09-20 00:14:07 +02:00
parent 4970422b30
commit d56055cf58
1 changed files with 1 additions and 1 deletions

View File

@ -468,7 +468,7 @@ func install(b *build) {
case len(b.Library) > 0:
ofiles := []string{}
for _, o := range b.ObjectFiles {
run(b, *shellhack, exec.Command("mv", o, b.Library + "-" + o))
os.Rename(o, b.Library + "-" + o)
ofiles = append(ofiles, b.Library + "-" + o)
}
libpath := path.Join(b.Install, b.Library)