mirror of
https://github.com/NixOS/patchelf.git
synced 2025-10-18 17:42:36 +08:00

directory to the RPATH of an executable doesn't cause it to be used for resolving dependencies of libraries, only the dependencies of the executable itself. So don't rely on that. A better fix would be to support --set-rpath on libraries, but that's a lot harder.
15 lines
201 B
C
15 lines
201 B
C
#include <stdio.h>
|
|
|
|
char buf[16 * 1024 * 1024];
|
|
|
|
int foo();
|
|
|
|
int main(int argc, char * * argv)
|
|
{
|
|
int x;
|
|
printf("Hello World\n");
|
|
x = foo();
|
|
printf("Result is %d\n", x);
|
|
return x;
|
|
}
|