Skip to content

Commit bd08156

Browse files
harfbuzz: fix android debug build (#2029)
``` ld: error: undefined hidden symbol: hb_buffer_t::message_impl(hb_font_t*, char const*, std::__va_list) >>> referenced by hb-buffer-verify.cc:51 (../source/src/hb-buffer-verify.cc:51) >>> hb-buffer-verify.cc.o:(buffer_verify_error(hb_buffer_t*, hb_font_t*, char const*, ...)) in archive […]/build/aarch64-unknown-linux-android21-debug/staging/lib/libharfbuzz.a clang++: error: linker command failed with exit code 1 (use -v to see invocation) ```
1 parent 19e9d8a commit bd08156

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

thirdparty/harfbuzz/android.patch

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,19 @@ index fe466fe1..d728bb99 100644
1313
#ifndef HB_NO_SETLOCALE
1414

1515
#include <locale.h>
16+
--- a/src/hb-buffer-verify.cc
17+
+++ b/src/hb-buffer-verify.cc
18+
@@ -46,11 +46,13 @@
19+
{
20+
va_list ap;
21+
va_start (ap, fmt);
22+
+#ifndef HB_NO_BUFFER_MESSAGE
23+
if (buffer->messaging ())
24+
{
25+
buffer->message_impl (font, fmt, ap);
26+
}
27+
else
28+
+#endif
29+
{
30+
fprintf (stderr, "harfbuzz ");
31+
vfprintf (stderr, fmt, ap);

0 commit comments

Comments
 (0)