I donโt know if I fully understand you, but if my understanding is not so, I start with ldd -v . Any OS compatible with architecture and having dependent libraries installed in compatible versions should work.
Further, if you plan to support more architectures, you need to explicitly know this and cross-compile for each of them.
So, you must recompile: 1. Each other architecture. 2. If the library versions are incompatible.
This last one is more complicated, as your code may require certain versions to work, but you should still know this from the very beginning.
Please tell me if this is not what you wanted.
source share