Wednesday, July 6, 2011

Linux: Replace a dynamic library for a test

  • Re-compile the exe using the .so while removing the -rpath dir option.
  • export LD_LIBARY_PATH
  • Check with ldd on the exe that your library is taken into account.