1From 70441611d4e8200d9d16dfed493873b8c1bb57c5 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 15 Mar 2021 11:33:38 -0700
4Subject: [PATCH] Remove HAVE_GETCONTEXT check to add local implementation
5
6On musl getcontext/setcontext APIs are implemented in libucontext which
7can be used
8
9Upstream-Status: Inappropriate [Musl Specific]
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 Makefile.am | 12 ------------
13 1 file changed, 12 deletions(-)
14
15--- a/Makefile.am
16+++ b/Makefile.am
17@@ -529,10 +529,6 @@ src_client_linux_libbreakpad_client_a_SO
18 	src/common/linux/linux_libc_support.cc \
19 	src/common/linux/memory_mapped_file.cc \
20 	src/common/linux/safe_readlink.cc
21-if !HAVE_GETCONTEXT
22-src_client_linux_libbreakpad_client_a_SOURCES += \
23-	src/common/linux/breakpad_getcontext.S
24-endif
25
26 # Client tests
27 src_client_linux_linux_dumper_unittest_helper_SOURCES = \
28@@ -580,10 +576,6 @@ src_client_linux_linux_client_unittest_s
29 	src/processor/minidump.cc \
30 	src/processor/pathname_stripper.cc \
31 	src/processor/proc_maps_linux.cc
32-if !HAVE_GETCONTEXT
33-src_client_linux_linux_client_unittest_shlib_SOURCES += \
34-	src/common/linux/breakpad_getcontext.S
35-endif
36
37 src_client_linux_linux_client_unittest_shlib_CPPFLAGS = \
38 	$(AM_CPPFLAGS) $(TEST_CFLAGS)
39@@ -613,10 +605,6 @@ src_client_linux_linux_client_unittest_s
40 	src/common/string_conversion.o \
41 	$(TEST_LIBS) \
42 	$(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
43-if !HAVE_GETCONTEXT
44-src_client_linux_linux_client_unittest_shlib_SOURCES += \
45-	src/common/linux/breakpad_getcontext_unittest.cc
46-endif
47 if ANDROID_HOST
48 src_client_linux_linux_client_unittest_shlib_LDFLAGS += \
49 	-llog -lm
50