https://bugs.freedesktop.org/show_bug.cgi?id=54015
--- Comment #3 from Jung-uk Kim <[email protected]> 2012-08-27 22:33:47 UTC --- Okay, I found the root cause of this problem: % cat main.c void hello(void); int main(void) { hello(); return (0); } % cat lib/hello.c #include <stdio.h> void hello(void) { printf("Hello, world!\n"); } % make clean rm -f lib/libhello.so main % make cc -fPIC -shared -o lib/libhello.so lib/hello.c cc -Wl,-rpath='$ORIGIN/lib' -Llib -lhello -o main main.c % ./main Shared object "libhello.so" not found, required by "main" % make clean rm -f lib/libhello.so main % make LDFLAGS=-Wl,-zorigin cc -fPIC -shared -o lib/libhello.so lib/hello.c cc -Wl,-zorigin -Wl,-rpath='$ORIGIN/lib' -Llib -lhello -o main main.c % ./main Hello, world! FreeBSD ld must have "-zorigin" with "-rpath". Otherwise, $ORIGIN is not translated and it is literal. -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. _______________________________________________ Libreoffice-bugs mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
