diff options
author | Josh Gao <jmgao@google.com> | 2016-04-29 15:14:40 -0700 |
---|---|---|
committer | Josh Gao <jmgao@google.com> | 2016-04-29 15:14:40 -0700 |
commit | abe5c08aee8f2602c40a951dae64daac4beb597a (patch) | |
tree | e505a0dd2810101d5c9fc6053e97763a7875774c | |
parent | 895e961e2cdce2d7a385fc8293c846e3da0a460f (diff) | |
download | gdb-abe5c08aee8f2602c40a951dae64daac4beb597a.tar.gz |
Don't build lzma on Windows.
Change-Id: I4a1a3dbba6ea09e97d65c4468033153eac3c86e7
-rwxr-xr-x | build-gdb.sh | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/build-gdb.sh b/build-gdb.sh index 98acd5d11..4f066c4cc 100755 --- a/build-gdb.sh +++ b/build-gdb.sh @@ -219,9 +219,6 @@ build_host_gdb () build_expat $1 local EXPATPREFIX=$BH_BUILD_DIR/install-host-$1 - build_lzma $1 - local LZMAPREFIX=$BH_BUILD_DIR/install-host-$1 - ARGS=" --prefix=$INSTALLDIR" ARGS=$ARGS" --disable-shared" @@ -236,14 +233,25 @@ build_host_gdb () ;; esac + case "$BH_BUILD_CONFIG" in + *windows*) + # The liblzma build fails when targeting windows, for some reason. + ;; + + *) + build_lzma $1 + local LZMAPREFIX=$BH_BUILD_DIR/install-host-$1 + ARGS=$ARGS" --with-lzma" + ARGS=$ARGS" --with-liblzma-prefix=$LZMAPREFIX" + ;; + esac + ARGS=$ARGS" --enable-targets=$TARGETS" ARGS=$ARGS" --disable-werror" ARGS=$ARGS" --disable-nls" ARGS=$ARGS" --disable-docs" ARGS=$ARGS" --with-expat" ARGS=$ARGS" --with-libexpat-prefix=$EXPATPREFIX" - ARGS=$ARGS" --with-lzma" - ARGS=$ARGS" --with-liblzma-prefix=$LZMAPREFIX" ARGS=$ARGS" --without-mpc" ARGS=$ARGS" --without-mpfr" ARGS=$ARGS" --without-gmp" |