FileCheck: standalone version? Or how to create a portable binary?

Hi all,

We are trying to use LLVM LIT and FileCheck outside of the LLVM tree.

I have tried to precompile FileCheck from LLVM 8 tree, and its
binaries built on macOS and Linux Ubuntu seem to be portable when I
check them on different machines, however, as we expected, Ubuntu
Linux binary is not possible to run on CentOS where I have errors like
this:

/app/tests/integration/tools/FileCheck
/app/tests/integration/tools/FileCheck/FileCheck-Linux:
/lib64/libtinfo.so.5: no version information available (required by
/app/tests/integration/tools/FileCheck/FileCheck-Linux)
/app/tests/integration/tools/FileCheck/FileCheck-Linux:
/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by
/app/tests/integration/tools/FileCheck/FileCheck-Linux)
/app/tests/integration/tools/FileCheck/FileCheck-Linux:
/lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by
/app/tests/integration/tools/FileCheck/FileCheck-Linux)

Given that lit is a pip package, I am curious if it would make sense
to create a pip package for FileCheck as well.

So it is two questions:

1) What is the easiest way to build FileCheck and have it as portable
as possible?
2) Python version? Any prior implementations Do you think it is a good idea?

Thank you for your attention.

Stanislav