]> granicus.if.org Git - procps-ng/commit
top: add the major version to dlopen of libnuma soname
authorJim Warner <james.warner@comcast.net>
Thu, 6 Jun 2013 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@enc.com.au>
Mon, 10 Jun 2013 05:43:12 +0000 (15:43 +1000)
commitb55f9b97db9101e8fb1903d03f7bc7e9c8476572
tree33066d4173d1449c1474fd21ef1b2492625bbfe8
parentce0539ecac903136a4d72bf1aeb9de9f4673c1ba
top: add the major version to dlopen of libnuma soname

When the plug-in approach to NUMA support was added, I
carelessly employed the compile-time linker convention
for naming the library. Technically this then required
the 'devel' package for NUMA support to be present for
the unqualified soname symlink to be available. Either
that or one must have manually created such a symlink.

This commit adds the missing major version to dlopen()
of libnuma.so.1 so simply having a more likely package
such as 'numactl' will enable both '2' & '3' commands.

References(s):
http://www.freelists.org/post/procps/top-NUMA-node-CPU-utilization-support,25
. initial dlopen support
commit edba932a7e9b950dd91bc486e107788e977a5186

Signed-off-by: Jim Warner <james.warner@comcast.net>
top/top.c