Skip to contentSkip to conversation

snmp++: need dynamic library support

PATCH New Luca Ceresoli 2 participants 3 messages Apr 16, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 snmp++: need dynamic library support

Fixes:
http://autobuild.buildroot.net/results/7b9/7b9ec11514219e5f315df0b30204f431b4c4f8a1/

---
 package/snmppp/Config.in | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
package/snmppp/Config.in +4 -2
index 8b69fab..ef217f7 100644
@@ -2,6 +2,7 @@ config BR2_PACKAGE_SNMPPP
 	bool "snmp++"
 	depends on BR2_INSTALL_LIBSTDCPP
 	depends on BR2_TOOLCHAIN_HAS_THREADS
+	depends on !BR2_PREFER_STATIC_LIB
 	help
 	  SNMP++v3.x is a C++ API which supports SNMP v1, v2c, and v3.
 
@@ -25,5 +26,6 @@ config BR2_PACKAGE_SNMPPP_SNMPV3
 
 endif
 
-comment "snmp++ needs a toolchain w/ threads, C++"
-	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
+comment "snmp++ needs a toolchain w/ threads, C++, dynamic library"
+	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
+		BR2_PREFER_STATIC_LIB
Signature · 1 line
1.8.3.2
#1 lore raw

PATCH 2/2 agent++: need dynamic library support

Required by SNMP++.

---
 package/agentpp/Config.in | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
package/agentpp/Config.in +4 -2
index 1442a45..8fd6c0d 100644
@@ -3,6 +3,7 @@ config BR2_PACKAGE_AGENTPP
 	select BR2_PACKAGE_SNMPPP
 	depends on BR2_INSTALL_LIBSTDCPP
 	depends on BR2_TOOLCHAIN_HAS_THREADS # snmp++
+	depends on !BR2_PREFER_STATIC_LIB # snmp++
 	help
 	  AGENT++ is a set of C++ classes which provides a complete protocol
 	  engine and dispatch table for the development of SNMP agents.
@@ -16,5 +17,6 @@ config BR2_PACKAGE_AGENTPP
 
 	  http://www.agentpp.com/agentpp3_5/agentpp3_5.html
 
-comment "agent++ needs a toolchain w/ threads, C++"
-	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
+comment "agent++ needs a toolchain w/ threads, C++, dynamic library"
+	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
+		BR2_PREFER_STATIC_LIB
Signature · 1 line
1.8.3.2
#2 lore raw

PATCH 1/2 snmp++: need dynamic library support

In reply to Luca Ceresoli

Dear Luca Ceresoli,

Quoted 7 lines · Luca Ceresoli

Fixes:
http://autobuild.buildroot.net/results/7b9/7b9ec11514219e5f315df0b30204f431b4c4f8a1/

---
 package/snmppp/Config.in | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

Both applied, thanks.

Thomas

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