Jirka Hladky, le Sat 19 Jun 2010 00:45:17 +0200, a écrit : > I haven't tried it yet. In any case, rpath is already in Makefile.in which is > shipped with hwloc-1.0.1: > > ./src/Makefile.in:@HWLOC_BUILD_STANDALONE_TRUE@am_libhwloc_la_rpath = -rpath > $(libdir) > ./src/Makefile.in:@HWLOC_BUILD_STANDALONE_FALSE@am_libhwloc_embedded_la_rpath > = > ./src/Makefile.in: $(AM_V_CCLD)$(libhwloc_la_LINK) > $(am_libhwloc_la_rpath) > $(libhwloc_la_OBJECTS) $(libhwloc_la_LIBADD) $(LIBS) > ./src/Makefile.in: $(AM_V_CCLD)$(libhwloc_embedded_la_LINK)
Yes, because at that stage it can't know whether libdir will be in the standard search path or not. But then libtool filters this out, see /bin/sh ../libtool --tag=CC --mode=link gcc -std=gnu99 -fvisibility=hidden -I/usr/include/libxml2 -std=gnu99 -fvisibility=hidden -Wall -g -I/home/samy/pm2-newsched/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 -o libhwloc.la -rpath /usr/local/lib topology.lo traversal.lo topology-synthetic.lo bind.lo cpuset.lo misc.lo topology-xml.lo topology-linux.lo topology-x86.lo -libverbs 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 /usr/lib/libxml2.so /usr/lib/libibverbs.so -Wl,-soname -Wl,libhwloc.so.0 -o .libs/libhwloc.so.0.0.0 > > So apparently libtool somehow doesn't realizes that /usr/lib64 is in the > > standard search path. I'd tend to believe it's a bug in libtool or the > > distribution which don't understand each other. How does configure get > > invoked? What is the output of gcc -print-search-dirs? > > I have double checked it. > > /usr/lib64 is included in the output of gcc -print-search-dirs. Ok. Samuel