Open MPI logo

Hardware Locality Users' Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Hardware Locality Users mailing list

Subject: Re: [hwloc-users] [hwloc-devel] hwloc and rpath
From: Samuel Thibault (samuel.thibault_at_[hidden])
Date: 2010-06-21 10:51:09


Jeff Squyres, le Mon 21 Jun 2010 10:48:13 -0400, a écrit :
> I still see -rpath being inserted in the final link step for libhwloc.so (SVN build using AC 2.65, AM 1.11.1, LT 2.2.6b):
>
> /bin/sh ../libtool --tag=CC --mode=link gcc -std=gnu99 -fvisibility=hidden -I/usr/include/libxml2 -std=gnu99 -fvisibility=hidden -I/users/jsquyres/svn/hwloc/include -Wall -Wunused-parameter -Wundef -Wno-long-long -Wsign-compare -Wmissing-prototypes -Wstrict-prototypes -Wcomment -pedantic -no-undefined -version-number 0:0:0 -lxml2 -lz -lm -o libhwloc.la -rpath /home/jsquyres/bogus/lib topology.lo traversal.lo topology-synthetic.lo bind.lo cpuset.lo misc.lo topology-xml.lo topology-linux.lo topology-x86.lo -libverbs
>
> But unless I'm mistaken, libtool then strips it out:
>
> libtool: link: gcc -shared .libs/topology.o .libs/traversal.o .libs/topology-synthetic.o .libs/bind.o .libs/cpuset.o .libs/misc.o .libs/topology-xml.o .libs/topology-linux.o .libs/topology-x86.o -lxml2 -lz -lm -libverbs -Wl,-soname -Wl,libhwloc.so.0 -o .libs/libhwloc.so.0.0.0

I was also seeing that behavior with LIBS, so I don't think turning to
LDADD fixed that part.

Samuel