Commit f1364e1b authored by Marvin Scholz's avatar Marvin Scholz Committed by Steve Lhomme
Browse files

package/win32: Force libtool build when using llvm-mingw

The libtool in extras/tools has additional patches that are needed to
build with llvm-mingw.

(cherry picked from commit f88b10e49d7fb04c360ec0ad13f94f9d5dc6d4e3)
parent ef47996c
Pipeline #15627 failed with stage
in 45 minutes and 53 seconds
......@@ -89,11 +89,22 @@ esac
JOBS=`getconf _NPROCESSORS_ONLN 2>&1`
TRIPLET=$ARCH-w64-mingw32
# Check if compiling with clang
CC=${CC:-$TRIPLET-gcc}
if ! printf "#ifdef __clang__\n#error CLANG\n#endif" | $CC -E -; then
COMPILING_WITH_CLANG=1
fi
info "Building extra tools"
cd extras/tools
# Force libtool build when compiling with clang
if [ "$COMPILING_WITH_CLANG" -gt 0 ] && [ ! -d "libtool" ]; then
FORCED_TOOLS=".libtool"
fi
# bootstrap only if needed in interactive mode
if [ "$INTERACTIVE" != "yes" ] || [ ! -f ./Makefile ]; then
./bootstrap
NEEDED="$FORCED_TOOLS" ./bootstrap
fi
make -j$JOBS
export PATH="$PWD/build/bin":"$PATH"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment