From 66926ecd1f1829d43c0773b8b6075c7436a4b1a1 Mon Sep 17 00:00:00 2001 From: Vishal Biswas Date: Fri, 24 Mar 2017 05:21:50 +0530 Subject: [PATCH] add support for custom libexecdir (#869) --- build-package.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build-package.sh b/build-package.sh index 3846995ad..cb4a0ab36 100755 --- a/build-package.sh +++ b/build-package.sh @@ -668,6 +668,10 @@ termux_step_configure_autotools () { if [ "$TERMUX_PKG_EXTRA_CONFIGURE_ARGS" != "${TERMUX_PKG_EXTRA_CONFIGURE_ARGS/--host=/}" ]; then HOST_FLAG="" fi + LIBEXEC_FLAG="--libexecdir=$TERMUX_PREFIX/libexec" + if [ "$TERMUX_PKG_EXTRA_CONFIGURE_ARGS" != "${TERMUX_PKG_EXTRA_CONFIGURE_ARGS/--libexecdir=/}" ]; then + LIBEXEC_FLAG="" + fi # Some packages provides a $PKG-config script which some configure scripts pickup instead of pkg-config: mkdir "$TERMUX_PKG_TMPDIR/config-scripts" @@ -724,7 +728,7 @@ termux_step_configure_autotools () { $DISABLE_NLS \ $ENABLE_SHARED \ $DISABLE_STATIC \ - --libexecdir=$TERMUX_PREFIX/libexec + $LIBEXEC_FLAG } termux_step_configure_cmake () {