package/snmppp: fix SNMPv3 with gcc <= 5
Fixes: - http://autobuild.buildroot.org/results/bfe3faefc007f2e746c9f0af9b7d0926bb72dc9e Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Reviewed-by: Luca Ceresoli <luca@lucaceresoli.net> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
committed by
Yann E. MORIN
parent
3c2e8b2b29
commit
b435912e54
@@ -21,10 +21,14 @@ config BR2_PACKAGE_SNMPPP_LOGGING
|
|||||||
config BR2_PACKAGE_SNMPPP_SNMPV3
|
config BR2_PACKAGE_SNMPPP_SNMPV3
|
||||||
bool "enable SNMPv3"
|
bool "enable SNMPv3"
|
||||||
default y
|
default y
|
||||||
|
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # C++11
|
||||||
select BR2_PACKAGE_OPENSSL
|
select BR2_PACKAGE_OPENSSL
|
||||||
help
|
help
|
||||||
Enable optional support for SNMP++. This selects OpenSSL.
|
Enable optional support for SNMP++. This selects OpenSSL.
|
||||||
|
|
||||||
|
comment "SNMPv3 needs a toolchain w/ gcc >= 4.8"
|
||||||
|
depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
comment "snmp++ needs a toolchain w/ threads, C++, dynamic library"
|
comment "snmp++ needs a toolchain w/ threads, C++, dynamic library"
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ SNMPPP_LICENSE = SNMP++
|
|||||||
SNMPPP_LICENSE_FILES = src/v3.cpp
|
SNMPPP_LICENSE_FILES = src/v3.cpp
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_SNMPPP_SNMPV3),y)
|
ifeq ($(BR2_PACKAGE_SNMPPP_SNMPV3),y)
|
||||||
|
SNMPPP_CONF_ENV += CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++11"
|
||||||
SNMPPP_CONF_OPTS += --enable-snmpv3
|
SNMPPP_CONF_OPTS += --enable-snmpv3
|
||||||
SNMPPP_DEPENDENCIES += openssl
|
SNMPPP_DEPENDENCIES += openssl
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user