odk/build-examples_common.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit ab38ed79357ebf4e0f2260b9779433d0bd00d4ed Author: Michael Stahl <[email protected]> AuthorDate: Mon May 3 12:48:14 2021 +0200 Commit: Thorsten Behrens <[email protected]> CommitDate: Thu May 13 10:31:09 2021 +0200 odk: build examples with GCC with explicit -std=c++11 GCC 11 defaults to -std=c++17, which doesn't support exception specifications any more. ddcc98fa50dd9d86a60dada4daa00f4d95ffe005 seems a bit large to backport. Change-Id: I74a182435b268be8fd7a9ff0be9f404122108b51 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115505 Tested-by: Thorsten Behrens <[email protected]> Reviewed-by: Thorsten Behrens <[email protected]> diff --git a/odk/build-examples_common.mk b/odk/build-examples_common.mk index 50ea40ec905e..f05220f3f635 100644 --- a/odk/build-examples_common.mk +++ b/odk/build-examples_common.mk @@ -48,7 +48,7 @@ endif $(foreach my_dir,$(2), \ && (cd $(INSTDIR)/$(SDKDIRNAME)/examples/$(my_dir) \ && printf 'yes\n' | LC_ALL=C make \ - CC="$(CXX)" LINK="$(CXX)" LIB="$(CXX)" \ + CC="$(CXX) $(if $(filter GCC,$(COM)),-std=c++11)" LINK="$(CXX)" LIB="$(CXX)" \ $(if $(MACOSX_SHELL_HACK), SHELL=$(ODK_BUILD_SHELL), )))) \ >$(call gb_CustomTarget_get_workdir,$(1))/log 2>&1 \ || (RET=$$$$? \ _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
