On 15/11/18 12:10 pm, Christopher Samuel wrote: > I wonder if it's because they use libtool instead?
Yup, it's libtool - using it compile my toy example shows the same behaviour with "readelf -d" pulling in the private libraries directly. :-( [csamuel@farnarkle2 libtool]$ cat hhgttg.c int answer(void) { return(42); } [csamuel@farnarkle2 libtool]$ libtool compile gcc hhgttg.c -c -o hhgttg.o libtool: compile: gcc hhgttg.c -c -fPIC -DPIC -o .libs/hhgttg.o libtool: compile: gcc hhgttg.c -c -o hhgttg.o >/dev/null 2>&1 [csamuel@farnarkle2 libtool]$ libtool link gcc -o libhhgttg.la hhgttg.lo -lmpi -rpath /usr/local/lib libtool: link: gcc -shared -fPIC -DPIC .libs/hhgttg.o -Wl,-rpath -Wl,/apps/skylake/software/compiler/gcc/6.4.0/openmpi/3.0.0/lib -Wl,-rpath -Wl,/apps/skylake/software/compiler/gcc/6.4.0/openmpi/3.0.0/lib /apps/skylake/software/compiler/gcc/6.4.0/openmpi/3.0.0/lib/libmpi.so -L/apps/skylake/software/core/gcccore/6.4.0/lib64 -L/apps/skylake/software/core/gcccore/6.4.0/lib -L/apps/skylake/software/compiler/gcc/6.4.0/openmpi/3.0.0/lib /apps/skylake/software/compiler/gcc/6.4.0/openmpi/3.0.0/lib/libopen-rte.so /apps/skylake/software/compiler/gcc/6.4.0/openmpi/3.0.0/lib/libopen-pal.so -ldl -lrt -lutil -lm -lpthread -lz -lhwloc -Wl,-soname -Wl,libhhgttg.so.0 -o .libs/libhhgttg.so.0.0.0 libtool: link: (cd ".libs" && rm -f "libhhgttg.so.0" && ln -s "libhhgttg.so.0.0.0" "libhhgttg.so.0") libtool: link: (cd ".libs" && rm -f "libhhgttg.so" && ln -s "libhhgttg.so.0.0.0" "libhhgttg.so") libtool: link: ar cru .libs/libhhgttg.a hhgttg.o libtool: link: ranlib .libs/libhhgttg.a libtool: link: ( cd ".libs" && rm -f "libhhgttg.la" && ln -s "../libhhgttg.la" "libhhgttg.la" ) [csamuel@farnarkle2 libtool]$ readelf -d .libs/libhhgttg.so.0| fgrep -i lib 0x0000000000000001 (NEEDED) Shared library: [libmpi.so.40] 0x0000000000000001 (NEEDED) Shared library: [libopen-rte.so.40] 0x0000000000000001 (NEEDED) Shared library: [libopen-pal.so.40] 0x0000000000000001 (NEEDED) Shared library: [libdl.so.2] 0x0000000000000001 (NEEDED) Shared library: [librt.so.1] 0x0000000000000001 (NEEDED) Shared library: [libutil.so.1] 0x0000000000000001 (NEEDED) Shared library: [libm.so.6] 0x0000000000000001 (NEEDED) Shared library: [libpthread.so.0] 0x0000000000000001 (NEEDED) Shared library: [libz.so.1] 0x0000000000000001 (NEEDED) Shared library: [libhwloc.so.5] 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] 0x000000000000000e (SONAME) Library soname: [libhhgttg.so.0] 0x000000000000001d (RUNPATH) Library runpath: [/apps/skylake/software/compiler/gcc/6.4.0/openmpi/3.0.0/lib] All the best, Chris -- Christopher Samuel OzGrav Senior Data Science Support ARC Centre of Excellence for Gravitational Wave Discovery http://www.ozgrav.org/ http://twitter.com/ozgrav _______________________________________________ devel mailing list devel@lists.open-mpi.org https://lists.open-mpi.org/mailman/listinfo/devel