diff --git a/tools/hxcpp/Linker.hx b/tools/hxcpp/Linker.hx index d65281d8f..645980288 100644 --- a/tools/hxcpp/Linker.hx +++ b/tools/hxcpp/Linker.hx @@ -291,8 +291,9 @@ class Linker args = args.concat(libs); + var lib_name = mLibDir!="" ? mLibDir+"/"+file_name : out_name; var result = ProcessManager.runCommand("", mExe, args, true, true, false, - "\x1b[1mLink: \x1b[0m" + out_name); + "\x1b[1mLink: \x1b[0m" + lib_name); if (result!=0) { Tools.exit(result); @@ -301,8 +302,8 @@ class Linker if (mRanLib!="") { - args = [out_name]; - var result = ProcessManager.runCommand("", mRanLib, args, true, true, false, "\x1b[1mRanlib:\x1b[0m " + out_name); + args = [lib_name]; + var result = ProcessManager.runCommand("", mRanLib, args, true, true, false, "\x1b[1mRanlib:\x1b[0m " + lib_name); if (result!=0) { Tools.exit(result); @@ -312,6 +313,7 @@ class Linker if (mLibDir!="") { + Log.info("\x1b[1mMove file: \x1b[0m" + mLibDir+"/"+file_name + " to " + out_name); sys.io.File.copy( mLibDir+"/"+file_name, out_name ); FileSystem.deleteFile( mLibDir+"/"+file_name ); }