From 618d27911f2b07362ff6c12729afd3e317634589 Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Tue, 9 Feb 2010 12:09:06 -0500 Subject: [PATCH] Bug 543111. Make breakpad compile when cross-compiling with toolwhip. r=ted --- toolkit/crashreporter/Makefile.in | 9 ++++++++- .../google-breakpad/src/common/dwarf/functioninfo.cc | 3 +++ .../google-breakpad/src/common/mac/Makefile.in | 2 ++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/toolkit/crashreporter/Makefile.in b/toolkit/crashreporter/Makefile.in index 9ba5c2e580bb..64559bd433d3 100644 --- a/toolkit/crashreporter/Makefile.in +++ b/toolkit/crashreporter/Makefile.in @@ -61,12 +61,19 @@ endif ifeq ($(OS_ARCH),Darwin) CMMSRCS = mac_utils.mm +# Check both OS_ARCH (needed to be able to run it afterward) and +# HOST_OS_ARCH (needed because it refuses to cross-compile). +ifeq ($(HOST_OS_ARCH),Darwin) +DIRS += \ + google-breakpad/src/tools/mac/dump_syms \ + $(NULL) +endif + DIRS += \ google-breakpad/src/common \ google-breakpad/src/common/mac \ google-breakpad/src/client \ google-breakpad/src/client/mac/handler \ - google-breakpad/src/tools/mac/dump_syms \ $(NULL) endif diff --git a/toolkit/crashreporter/google-breakpad/src/common/dwarf/functioninfo.cc b/toolkit/crashreporter/google-breakpad/src/common/dwarf/functioninfo.cc index 1957153e92f7..8b3056e2daba 100644 --- a/toolkit/crashreporter/google-breakpad/src/common/dwarf/functioninfo.cc +++ b/toolkit/crashreporter/google-breakpad/src/common/dwarf/functioninfo.cc @@ -34,6 +34,9 @@ #include #include #include +#include +#include +#include #include "common/dwarf/functioninfo.h" diff --git a/toolkit/crashreporter/google-breakpad/src/common/mac/Makefile.in b/toolkit/crashreporter/google-breakpad/src/common/mac/Makefile.in index c0bdbccc3438..eda5680186b3 100644 --- a/toolkit/crashreporter/google-breakpad/src/common/mac/Makefile.in +++ b/toolkit/crashreporter/google-breakpad/src/common/mac/Makefile.in @@ -62,11 +62,13 @@ CMSRCS = \ HTTPMultipartUpload.m \ $(NULL) +ifeq ($(HOST_OS_ARCH),Darwin) HOST_CPPSRCS = $(CPPSRCS) HOST_CMMSRCS = \ dump_syms.mm \ $(NULL) +endif # need static lib FORCE_STATIC_LIB = 1