* [Buildroot] [PATCH 1/1] package/libcutl: fix build with gcc 11
@ 2021-05-30 8:14 Fabrice Fontaine
2021-06-01 20:00 ` Arnout Vandecappelle
0 siblings, 1 reply; 3+ messages in thread
From: Fabrice Fontaine @ 2021-05-30 8:14 UTC (permalink / raw)
To: buildroot
Add -std=c++11 to fix the following build failure with gcc 11:
In file included from shared-ptr/base.cxx:5:
../cutl/shared-ptr/base.hxx:34:41: error: ISO C++17 does not allow dynamic exception specifications
34 | operator new (std::size_t, cutl::share) throw (std::bad_alloc);
| ^~~~~
Fixes:
- http://autobuild.buildroot.org/results/60a39d402a0d051c92aa11421b7a14f7729a0380
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
package/libcutl/libcutl.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/libcutl/libcutl.mk b/package/libcutl/libcutl.mk
index 49c05e6019..2b704ad3b8 100644
--- a/package/libcutl/libcutl.mk
+++ b/package/libcutl/libcutl.mk
@@ -11,5 +11,6 @@ LIBCUTL_SITE = https://www.codesynthesis.com/download/libcutl/$(LIBCUTL_VERSION_
LIBCUTL_INSTALL_STAGING = YES
LIBCUTL_LICENSE = MIT
LIBCUTL_LICENSE_FILES = LICENSE
+HOST_LIBCUTL_CONF_ENV = CXXFLAGS="$(HOST_CXXFLAGS) -std=c++11"
$(eval $(host-autotools-package))
--
2.30.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 1/1] package/libcutl: fix build with gcc 11
2021-05-30 8:14 [Buildroot] [PATCH 1/1] package/libcutl: fix build with gcc 11 Fabrice Fontaine
@ 2021-06-01 20:00 ` Arnout Vandecappelle
2021-06-10 8:28 ` Peter Korsgaard
0 siblings, 1 reply; 3+ messages in thread
From: Arnout Vandecappelle @ 2021-06-01 20:00 UTC (permalink / raw)
To: buildroot
On 30/05/2021 10:14, Fabrice Fontaine wrote:
> Add -std=c++11 to fix the following build failure with gcc 11:
>
> In file included from shared-ptr/base.cxx:5:
> ../cutl/shared-ptr/base.hxx:34:41: error: ISO C++17 does not allow dynamic exception specifications
> 34 | operator new (std::size_t, cutl::share) throw (std::bad_alloc);
> | ^~~~~
>
> Fixes:
> - http://autobuild.buildroot.org/results/60a39d402a0d051c92aa11421b7a14f7729a0380
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Applied to master, thanks.
Regards,
Arnout
> ---
> package/libcutl/libcutl.mk | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/package/libcutl/libcutl.mk b/package/libcutl/libcutl.mk
> index 49c05e6019..2b704ad3b8 100644
> --- a/package/libcutl/libcutl.mk
> +++ b/package/libcutl/libcutl.mk
> @@ -11,5 +11,6 @@ LIBCUTL_SITE = https://www.codesynthesis.com/download/libcutl/$(LIBCUTL_VERSION_
> LIBCUTL_INSTALL_STAGING = YES
> LIBCUTL_LICENSE = MIT
> LIBCUTL_LICENSE_FILES = LICENSE
> +HOST_LIBCUTL_CONF_ENV = CXXFLAGS="$(HOST_CXXFLAGS) -std=c++11"
>
> $(eval $(host-autotools-package))
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 1/1] package/libcutl: fix build with gcc 11
2021-06-01 20:00 ` Arnout Vandecappelle
@ 2021-06-10 8:28 ` Peter Korsgaard
0 siblings, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2021-06-10 8:28 UTC (permalink / raw)
To: buildroot
>>>>> "Arnout" == Arnout Vandecappelle <arnout@mind.be> writes:
> On 30/05/2021 10:14, Fabrice Fontaine wrote:
>> Add -std=c++11 to fix the following build failure with gcc 11:
>>
>> In file included from shared-ptr/base.cxx:5:
>> ../cutl/shared-ptr/base.hxx:34:41: error: ISO C++17 does not allow dynamic exception specifications
>> 34 | operator new (std::size_t, cutl::share) throw (std::bad_alloc);
>> | ^~~~~
>>
>> Fixes:
>> - http://autobuild.buildroot.org/results/60a39d402a0d051c92aa11421b7a14f7729a0380
>>
>> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Committed to 2021.02.x, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-06-10 8:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-30 8:14 [Buildroot] [PATCH 1/1] package/libcutl: fix build with gcc 11 Fabrice Fontaine
2021-06-01 20:00 ` Arnout Vandecappelle
2021-06-10 8:28 ` Peter Korsgaard
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.