Re: ld linking behaviour

2010-06-11 Thread Ian Lance Taylor
Edward Peschko writes: > When I link with a shared library, for example: > > env LD_RUN_PATH="/usr/lib" /usr/bin/gcc -shared -fPIC > -L/usr/local/lib -Wl,-rpath,/home/y/lib Libconfig.o -o > blib/arch/auto/Conf/Libconfig/Libconfig.so -L/usr/lib -L/usr/local/lib > /usr/lib/libconfig.so > > the ld

ld linking behaviour

2010-06-11 Thread Edward Peschko
All, When I link with a shared library, for example: env LD_RUN_PATH="/usr/lib" /usr/bin/gcc -shared -fPIC -L/usr/local/lib -Wl,-rpath,/home/y/lib Libconfig.o -o blib/arch/auto/Conf/Libconfig/Libconfig.so -L/usr/lib -L/usr/local/lib /usr/lib/libconfig.so the ld command follows the version, and