[Android] [PATCH 08/11] Force failed detection of search.h and tdestroy

Victorien Le Couviour--Tuffet victorien.lecouviour.tuffet at gmail.com
Mon Oct 8 12:06:50 CEST 2018


Fixes build with the NDK 17

Force failed detection of search.h in order to avoid conflicts with
vlc_fixups.
Force failed detection of tdestroy so that fixups will declare it
and since tfind is always available (found) tdestroy compat function will
never be built (which is the wanted behaviour since it is always
available too).
---
 compile-libvlc.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/compile-libvlc.sh b/compile-libvlc.sh
index a20598450..5c494697c 100755
--- a/compile-libvlc.sh
+++ b/compile-libvlc.sh
@@ -545,6 +545,10 @@ else
     VLC_LDFLAGS="${VLC_LDFLAGS} -L${NDK_LIB_DIR} -landroid_support"
 fi
 
+# always use fixups for search.h and tdestroy
+export ac_cv_header_search_h=no
+export ac_cv_func_tdestroy=no
+
 if [ ! -e ./config.h -o "$RELEASE" = 1 ]; then
 CFLAGS="${VLC_CFLAGS} ${EXTRA_CFLAGS}" \
 CXXFLAGS="${VLC_CXXFLAGS} ${EXTRA_CFLAGS} ${EXTRA_CXXFLAGS}" \
-- 
2.19.1



More information about the Android mailing list