What’s the difference between `-rpath-link` and `-L`?
Here is a demo, for GNU ld, of the difference between -L and -rpath-link – and for good measure, the difference between -rpath-link and -rpath. foo.c #include <stdio.h> void foo(void) { puts(__func__); } bar.c #include <stdio.h> void bar(void) { puts(__func__); } foobar.c extern void foo(void); extern void bar(void); void foobar(void) { foo(); bar(); } main.c … Read more