tools: Allow tools to depend on other built tools
authorHugo Beauzée-Luyssen <hugo@beauzee.fr>
Fri, 31 May 2019 10:12:37 +0000 (12:12 +0200)
committerHugo Beauzée-Luyssen <hugo@beauzee.fr>
Mon, 3 Jun 2019 07:43:54 +0000 (09:43 +0200)
This notably fix building libtool, which depends on help2man.
Currently, libtool will fail to find the help2man we built as a
dependency.
https://jenkins.videolan.org/job/vlc-nightly/job/vlc-nightly-llvm-win64-x86_64/443/

extras/tools/bootstrap

index 544429e..6ce7bce 100755 (executable)
@@ -178,6 +178,7 @@ TOOLS = $BOOTSTRAP_PATH
 MAKEFLAGS += -j$CPUS
 CMAKEFLAGS += --parallel=$CPUS
 PREFIX=\$(abspath ./build)
+PATH="\${PREFIX}/bin:$PATH"
 EOF
 
 for t in $FOUND; do