pick: Update from 2.0.1 to 2.0.2
[termux-packages] / packages / notmuch / Makefile.global.patch
1 Using CXX as the final linker avoids the following problem on 32-bit arm:
2
3 libgcc/unwind-arm-common.inc:855: error: undefined reference to '__cxa_call_unexpected'
4
5 diff -u -r ../notmuch-0.25/Makefile.global ./Makefile.global
6 --- ../notmuch-0.25/Makefile.global 2017-07-25 13:30:24.000000000 +0200
7 +++ ./Makefile.global 2017-08-18 21:15:27.998770016 +0200
8 @@ -57,7 +57,7 @@
9 FINAL_NOTMUCH_LDFLAGS += $(RPATH_LDFLAGS)
10 endif
11 FINAL_NOTMUCH_LDFLAGS += $(AS_NEEDED_LDFLAGS) $(GMIME_LDFLAGS) $(TALLOC_LDFLAGS) $(ZLIB_LDFLAGS)
12 -FINAL_NOTMUCH_LINKER = CC
13 +FINAL_NOTMUCH_LINKER = CXX
14 ifneq ($(LINKER_RESOLVES_LIBRARY_DEPENDENCIES),1)
15 FINAL_NOTMUCH_LDFLAGS += $(CONFIGURE_LDFLAGS)
16 FINAL_NOTMUCH_LINKER = CXX