diff options
author | Stefano Azzalini <steazzalini@users.noreply.github.com> | 2017-12-04 22:50:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-04 22:50:31 +0100 |
commit | 88f304c4aa3eecdd7e0c89080741f6f2be6ce3ce (patch) | |
tree | f2cb33c4bd07af2d9af78fec2a8f7fe676574dc0 | |
parent | 00fafae94b1c92399c4a990844efaffa7089b930 (diff) |
Run configure command using relative path
On Win10, gcc build fails during configure due to an issue related to absolute path invocation under msys.
-rw-r--r-- | mingw-w64-build | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mingw-w64-build b/mingw-w64-build index b311cf2..edf0f69 100644 --- a/mingw-w64-build +++ b/mingw-w64-build @@ -139,7 +139,7 @@ build_toolchain() clean_build "$bld/binutils" echo "configuring binutils" >&3 - "$src/binutils-$v_binutils/configure" --prefix="$prefix" --disable-shared \ + "../../src/binutils-$v_binutils/configure" --prefix="$prefix" --disable-shared \ --enable-static --with-sysroot="$prefix" --target="$host" \ --disable-multilib --disable-nls || error_exit echo "building binutils" >&3 @@ -149,7 +149,7 @@ build_toolchain() clean_build "$bld/mingw-w64" echo "configuring mingw-w64-headers" >&3 - "$src/mingw-w64-git/mingw-w64-headers/configure" --build="$build" \ + "../../src/mingw-w64-git/mingw-w64-headers/configure" --build="$build" \ --host="$host" --prefix="$prefix/$host" --enable-secure-api || error_exit echo "installing mingw-w64-headers" >&3 make install || error_exit @@ -158,7 +158,7 @@ build_toolchain() clean_build "$bld/gcc" echo "configuring gcc" >&3 - "$src/gcc-$v_gcc/configure" --target="$host" --disable-shared \ + "../../src/gcc-$v_gcc/configure" --target="$host" --disable-shared \ --enable-static --disable-multilib --prefix="$prefix" \ --enable-languages=c,c++ --disable-nls || error_exit echo "running 'make-gcc' for gcc" >&3 @@ -168,7 +168,7 @@ build_toolchain() clean_build "$bld/mingw-w64" echo "configuring mingw-w64-crt" >&3 - "$src/mingw-w64-git/mingw-w64-crt/configure" --build="$build" --host="$host" \ + "../../src/mingw-w64-git/mingw-w64-crt/configure" --build="$build" --host="$host" \ --prefix="$prefix/$host" --with-sysroot="$prefix/$host" echo "building mingw-w64-crt" >&3 make -j $cpus || error_exit @@ -262,4 +262,4 @@ for arch in $@; do done rm -fr "$wd/bld" "$wd/src" -exit 0
\ No newline at end of file +exit 0 |