Fix GCC debug build. Change-Id: I11a3eb40a1b5f609e69d42acd32e56c9c1a8f473
diff --git a/gn/standalone/BUILD.gn b/gn/standalone/BUILD.gn index 01fcafb..d0b8a20 100644 --- a/gn/standalone/BUILD.gn +++ b/gn/standalone/BUILD.gn
@@ -108,6 +108,10 @@ libs += [ "log" ] } + if (is_debug) { + libs += [ "dl" ] + } + if (is_android) { asmflags += [ "--target=$android_abi_target" ] cflags += [
diff --git a/src/base/debug_crash_stack_trace.cc b/src/base/debug_crash_stack_trace.cc index 6e1f6c2..fef2ae0 100644 --- a/src/base/debug_crash_stack_trace.cc +++ b/src/base/debug_crash_stack_trace.cc
@@ -17,6 +17,7 @@ #include <cxxabi.h> #include <dlfcn.h> #include <signal.h> +#include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h>