X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/6b14aeb8cea6aca82886c2f1b70c521169d41b7d..722ed12d69bc2e936b4f437921b13cef76d2b596:/packages/busybox/build.sh diff --git a/packages/busybox/build.sh b/packages/busybox/build.sh index 169c361e..63dc4f56 100755 --- a/packages/busybox/build.sh +++ b/packages/busybox/build.sh @@ -11,7 +11,9 @@ TERMUX_PKG_CONFLICTS="coreutils (<< 8.25-4)" # NOTE: sed on mac does not work for building busybox, install gnu-sed with # homebrew using the --with-default-names option. -CFLAGS+=" -llog -DTERMUX_EXPOSE_MEMPCPY=1" # Android system liblog.so for syslog +termux_step_pre_configure () { + CFLAGS+=" -llog -DTERMUX_EXPOSE_MEMPCPY=1" # Android system liblog.so for syslog +} termux_step_configure () { # Bug in gold linker with busybox in android r10e: @@ -35,7 +37,7 @@ termux_step_post_make_install () { cd $TERMUX_PREFIX/bin/applets for f in `cat $TERMUX_PKG_SRCDIR/busybox.links`; do ln -s ../busybox `basename $f`; done - # The 'ash' and 'env' applets are special in that they go into $PREFIX/bin: + # The 'ash' and 'env' applets are special in that they go into $PREFIX/bin: cd $TERMUX_PREFIX/bin ln -f -s busybox ash ln -f -s busybox env