Github user jablko commented on the issue:

    https://github.com/apache/trafficserver/pull/1408
  
    I rebased this onto #1416. My theory is that traffic_top (etc.) was getting 
hwloc (etc.) because of Libtool's link_all_deplibs [1]. As I understand it, 
when Libtool links to a library (libfoo), link_all_deplibs calls ld with 
-llibrary for all of libfoo's dependencies (inter-library dependencies). 
link_all_deplibs is turned off on Debian and Ubuntu (maybe other platforms) -- 
that's why I didn't see it on my machine -- but the default is "unknown", which 
is a synonym for "yes".
    
    We can set link_all_deplibs ourselves, but calling the linker with 
--as-needed (#1416) is even more powerful because it will skip unused 
-llibraries that we add to the command line (because we add them to LIBS) as 
well as those that Libtool adds.
    
    [1] 
https://www.gnu.org/software/libtool/manual/libtool.html#index-link_005fall_005fdeplibs


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to