Hi Brice,
On Friday, June 18, 2010 10:19:20 pm Brice Goglin wrote:
> Le 18/06/2010 22:09, Jirka Hladky a écrit :
> > I'm in process to pack hwloc into rpm for Fedora.
>
> Great, thanks!
hwloc deserves it to have a rpm! :-) It's a very nice tool.
> > http://wiki.debian.org/RpathIssue
>
> It says that a recent libtool "no longer sets RPATH for any directories
> in the dynamic linker search path".
> Any idea why the above wouldn't be true in hwloc?
I'm not quite sure. Check this:
http://sourceware.org/automake/automake.html#A-Shared-Library
==============================================
A package can build and install such a library along with other programs that
use it. This dependency should be specified using LDADD. The following example
builds a program named hello that is linked with libgettext.la.
lib_LTLIBRARIES = libgettext.la
libgettext_la_SOURCES = gettext.c ...
bin_PROGRAMS = hello
hello_SOURCES = hello.c ...
hello_LDADD = libgettext.la
==============================================
find ./ -name Makefile.am -exec grep bin_PROGRAMS {} \+
./utils/Makefile.am:bin_PROGRAMS = lstopo hwloc-calc hwloc-bind hwloc-distrib
Based on the manual above I think you should have
lstopo_LDADD = libhwloc.la
hwloc-calc_LDADD = libhwloc.la
hwloc-bind_LDADD = libhwloc.la
hwloc-distrib_LDADD = libhwloc.la
in ./utils/Makefile.am
=======================================
# Only build the utilities if we're building in standalone mode
if HWLOC_BUILD_UTILS
bin_PROGRAMS = lstopo hwloc-calc hwloc-bind hwloc-distrib
lstopo_LDADD = libhwloc.la --->added
hwloc-calc_LDADD = libhwloc.la --->added
hwloc-bind_LDADD = libhwloc.la --->added
hwloc-distrib_LDADD = libhwloc.la --->added
endif
========================================
Please gave it a try.
Thanks
Jirka
|