X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/a8c61c7d20a186d09a661c4d107bcbc29e4da97a..751c27e81ae89e033ef47c7ed45065838dd3b53b:/build-package.sh diff --git a/build-package.sh b/build-package.sh index af260526..d5eeccc6 100755 --- a/build-package.sh +++ b/build-package.sh @@ -240,8 +240,9 @@ HERE fi TERMUX_ELF_CLEANER=$TERMUX_COMMON_CACHEDIR/termux-elf-cleaner -if [ ! -f $TERMUX_ELF_CLEANER ]; then - g++ -std=c++11 -Wall -Wextra -pedantic -Os $TERMUX_SCRIPTDIR/packages/termux-tools/termux-elf-cleaner.cpp -o $TERMUX_ELF_CLEANER +TERMUX_ELF_CLEANER_SRC=$TERMUX_SCRIPTDIR/packages/termux-tools/termux-elf-cleaner.cpp +if [ $TERMUX_ELF_CLEANER_SRC -nt $TERMUX_ELF_CLEANER ]; then + g++ -std=c++11 -Wall -Wextra -pedantic -Os $TERMUX_ELF_CLEANER_SRC -o $TERMUX_ELF_CLEANER fi # Keep track of when build started so we can see what files have been created