My executable is developed on an older linux system with a newer version of glibc (not the system default glibc). I would like to distribute it to machine with the older linux. This can achieve manually by using patchelf --set-interpret /path/to/linker --set-rpath /path/to/lib myexe see also multiple glibc.
Now I would like to do it with cmake/cpack systematically and automatically. So far I can do achieve following:
What I miss is that to change the dynamic-linker. Any tips?