Skip to contentSkip to conversation

Enabling static libraries build for netsnmp package

PATCH New universe II 2 participants 2 messages Nov 18, 2013 – Dec 25, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Enabling static libraries build for netsnmp package

As many embedded SW systems do no allow usage of shared libraries, I was wondering why the netsnmp package creates shared libraries only. The following patch enables the generation of static libraries additionally to the shared ones.

Regards,
Andreas

signed-off-by Andreas Ehmanns <[email protected]>

netsnmp.mk 2013-11-18 15:50:56.744217078 +0100 renamed from netsnmp.mk 2013-09-17 13:42:07.000000000 +0200 +1 -2
diff -purN netsnmp_orig/netsnmp.mk netsnmp/netsnmp.mk
@@ -11,7 +11,7 @@ NETSNMP_LICENSE = Various BSD-like
  NETSNMP_LICENSE_FILES = COPYING
  NETSNMP_INSTALL_STAGING = YES
  NETSNMP_CONF_ENV = ac_cv_NETSNMP_CAN_USE_SYSCTL=yes
-NETSNMP_CONF_OPT = --with-persistent-directory=/var/lib/snmp 
--disable-static \
+NETSNMP_CONF_OPT = --with-persistent-directory=/var/lib/snmp \
                 --with-defaults --enable-mini-agent --without-rpm \
                 --with-logfile=none --without-kmem-usage $(DISABLE_IPV6) \
                 --enable-as-needed --without-perl-modules \
#1 lore raw

PATCH 1/1 Enabling static libraries build for netsnmp package

Dear universe II,

Quoted 4 lines · universe II

As many embedded SW systems do no allow usage of shared libraries, I was wondering why the netsnmp package creates shared libraries only. The following patch enables the generation of static libraries additionally to the shared ones.

Thanks, applied, after adjusting the commit log.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com