How to remove paths to source files in a binary file (so)?
Maybe there is some kind of flag in clang?

/home/user/build/folder ... /home/user/build/folder/file.cpp 
  • one
    command strip for a binary from the console tried? (this is true for Linux, for other axes I do not know). Or compile without debugging support (remove the -g, -ggdb and similar flags). - KoVadim

1 answer 1

As it turned out, the linker has the option -s .
The answer is found here: https://stackoverflow.com/questions/18916157/is-it-possible-for-gcc-clang-to-link-into-executable-while-stripping-all-the-deb


Strip - thanks, works.