On FreeMiNT we'll have definied .irrelevant as the shared lib and so moving files will fail, we can either remove the "|| die..." or add the CHOST check. I've opted for the former in the attached patch. Comments please.
Created attachment 174889 [details, diff] ebuild patch
I conditionalised on .irrelevant libname instead.