https://github.com/net-snmp/net-snmp/pull/493 From a73bda5ca7afbeaf3cf3b73101f7541cf92147ef Mon Sep 17 00:00:00 2001 From: Sam James Date: Fri, 2 Dec 2022 02:27:21 +0000 Subject: [PATCH 2/4] Tidy up net-snmp-config output `net-snmp-config --libs` should return only the needed libraries linked to libraries which external consumers should use. Gentoo has been carrying this patch for a while, as has Fedora. Bug: https://bugs.gentoo.org/693970 Signed-off-by: Sam James --- a/net-snmp-config.in +++ b/net-snmp-config.in @@ -193,13 +193,13 @@ else #################################################### client lib --libs) # use this one == --netsnmp-libs + --external-libs - echo $NSC_LDFLAGS $NSC_LIBDIR $NSC_SNMPLIBS $NSC_LIBS + echo $NSC_LIBDIR $NSC_SNMPLIBS $NSC_LIBS ;; --netsnmp-libs) echo $NSC_LIBDIR $NSC_BASE_SNMP_LIBS ;; --external-libs) - echo $NSC_LDFLAGS $NSC_LNETSNMPLIBS $NSC_LIBS @PERLLDOPTS_FOR_APPS@ + echo $NSC_LNETSNMPLIBS $NSC_LIBS @PERLLDOPTS_FOR_APPS@ ;; #################################################### agent lib --base-agent-libs) @@ -210,13 +210,13 @@ else ;; --agent-libs) # use this one == --netsnmp-agent-libs + --external-libs - echo $NSC_LDFLAGS $NSC_LIBDIR $NSC_AGENTLIBS $NSC_LIBS + echo $NSC_LIBDIR $NSC_AGENTLIBS $NSC_LIBS ;; --netsnmp-agent-libs) echo $NSC_LIBDIR $NSC_BASE_AGENT_LIBS ;; --external-agent-libs) - echo $NSC_LDFLAGS $NSC_LMIBLIBS $NSC_LAGENTLIBS $NSC_LNETSNMPLIBS $NSC_LIBS + echo $NSC_LMIBLIBS $NSC_LAGENTLIBS $NSC_LNETSNMPLIBS $NSC_LIBS ;; #################################################### --version|--ver*) -- 2.38.1