6e7385defc
GNU debug link expects the file to have the same name as when compiled,
same solution as on Windows.
(cherry picked from commit 4e8cba2d22)