0

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:

  1. find and archieve all dynamic links
  2. override runpath of my executable

What I miss is that to change the dynamic-linker. Any tips?

Yan Zhu
  • 3,640
  • 3
  • 19
  • 34

0 Answers0