Skip to content

Instantly share code, notes, and snippets.

@laanwj
Created May 31, 2018 07:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laanwj/e84d17412a5811ef4b7bd7512218c01a to your computer and use it in GitHub Desktop.
Save laanwj/e84d17412a5811ef4b7bd7512218c01a to your computer and use it in GitHub Desktop.
Patch for buiding Bitcoin Core with C++14
diff --git a/configure.ac b/configure.ac
index 1ffef1527bdb556dff79338f4052d1b49ae6bc42..5f324894bd861fe92ec7fad24b6687876b0e1919 100644
--- a/configure.ac
+++ b/configure.ac
@@ -60,8 +60,8 @@ case $host in
lt_cv_deplibs_check_method="pass_all"
;;
esac
-dnl Require C++11 compiler (no GNU extensions)
-AX_CXX_COMPILE_STDCXX([11], [noext], [mandatory], [nodefault])
+dnl Require C++14 compiler (no GNU extensions)
+AX_CXX_COMPILE_STDCXX([14], [noext], [mandatory], [nodefault])
dnl Check if -latomic is required for <std::atomic>
CHECK_ATOMIC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment