Static linking considered harmful

John Reiser jreiser at BitWagon.com
Wed Nov 22 21:16:17 UTC 2006


>>>... stick the shared libraries you need into the same directory as the
>>>program and run it as
>>>./ld-linux*.so.2 --library-path . ./the_numerical_program arguments

>>Yes, the primary outputs will be the same.  But the total user interface
>>will be different.

> So you link with -Wl,--dynamic-linker,./ld-linux.so.2,-rpath,'${ORIGIN}/lib'
> or something similar, that's an implementation detail.

Will "${ORIGIN}" finally be documented in the glibc documentation?

-- 




More information about the fedora-devel-list mailing list