Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] package/snmppp: fix SNMPv3 with gcc <= 5
Date: Mon, 27 Jul 2020 08:44:42 +0200	[thread overview]
Message-ID: <20200727064442.GL19818@scaer> (raw)
In-Reply-To: <20200726212906.1548236-1-fontaine.fabrice@gmail.com>

Fabrice, All,

On 2020-07-26 23:29 +0200, Fabrice Fontaine spake thusly:
> Fixes:
>  - http://autobuild.buildroot.org/results/bfe3faefc007f2e746c9f0af9b7d0926bb72dc9e
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Applied to master, thanks.

Regards,
Yann E. MORIN.

> ---
>  package/snmppp/Config.in | 4 ++++
>  package/snmppp/snmppp.mk | 1 +
>  2 files changed, 5 insertions(+)
> 
> diff --git a/package/snmppp/Config.in b/package/snmppp/Config.in
> index 8d284673bc..de1a09ca4b 100644
> --- a/package/snmppp/Config.in
> +++ b/package/snmppp/Config.in
> @@ -21,10 +21,14 @@ config BR2_PACKAGE_SNMPPP_LOGGING
>  config BR2_PACKAGE_SNMPPP_SNMPV3
>  	bool "enable SNMPv3"
>  	default y
> +	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # C++11
>  	select BR2_PACKAGE_OPENSSL
>  	help
>  	  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
>  
>  comment "snmp++ needs a toolchain w/ threads, C++, dynamic library"
> diff --git a/package/snmppp/snmppp.mk b/package/snmppp/snmppp.mk
> index 5f52489ea4..601e28e207 100644
> --- a/package/snmppp/snmppp.mk
> +++ b/package/snmppp/snmppp.mk
> @@ -14,6 +14,7 @@ SNMPPP_LICENSE = SNMP++
>  SNMPPP_LICENSE_FILES = src/v3.cpp
>  
>  ifeq ($(BR2_PACKAGE_SNMPPP_SNMPV3),y)
> +SNMPPP_CONF_ENV += CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++11"
>  SNMPPP_CONF_OPTS += --enable-snmpv3
>  SNMPPP_DEPENDENCIES += openssl
>  else
> -- 
> 2.27.0
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

      parent reply	other threads:[~2020-07-27  6:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-26 21:29 [Buildroot] [PATCH 1/1] package/snmppp: fix SNMPv3 with gcc <= 5 Fabrice Fontaine
2020-07-27  6:30 ` Luca Ceresoli
2020-07-27  6:44 ` Yann E. MORIN [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200727064442.GL19818@scaer \
    --to=yann.morin.1998@free.fr \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox