Fix src/test/run-make/issue-36710
on cross-compiled targets
#103179
Merged
src/test/run-make/issue-36710
on cross-compiled targets
#103179