adding “-rpath,/usr/lib” in the build options of a shared library cause a segfault
问题 I have a hello world program. #include <stdio.h> #include <stdlib.h> int main() { printf("hello world! \n"); return 0; } I add -lmicroxml in the build of the program in the linkage phase in order to link to the library libmicroxml.so when I launch my program I get a segmentation fault. the segmentation fault is related to the load of the libmicroxml.so . here after the strace of my helleo world program execution: strace ./test execve("./test", ["./test"], [/* 11 vars */]) = 0 old_mmap(NULL,