weechat: Fix build in some cross-build environment

Build system incorrectly picked up `libgcrypt-config` for build host.
Note that `*-config` script hack in `termux_step_configure_autotools`
does not apply when e.g. CMake or Meson is used as the build system.

%ci:no-build
This commit is contained in:
Tee KOBAYASHI 2022-11-25 09:32:39 +09:00 committed by xtkoba
parent 01ea5d53fc
commit f54e87f226
2 changed files with 11 additions and 0 deletions

View File

@ -29,6 +29,7 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
-DMSGFMT_EXECUTABLE=$(command -v msgfmt)
-DMSGMERGE_EXECUTABLE=$(command -v msgmerge)
-DXGETTEXT_EXECUTABLE=$(command -v xgettext)
-DLIBGCRYPT_CONFIG_EXECUTABLE=$TERMUX_PREFIX/bin/libgcrypt-config
"
termux_step_pre_configure() {

View File

@ -0,0 +1,10 @@
--- a/cmake/FindGCRYPT.cmake
+++ b/cmake/FindGCRYPT.cmake
@@ -27,7 +27,6 @@
# GCRYPT_LDFLAGS = ldflags to use to compile
#
-find_program(LIBGCRYPT_CONFIG_EXECUTABLE NAMES libgcrypt-config)
set(GCRYPT_LDFLAGS)
set(GCRYPT_CFLAGS)