installdeps: fix mxe compiler ccache symlinks.
For some versions of the mxe ubuntu repositories, the compiler/ccache packages have a bug where the compiler a broken symlink to ccache. Make sure the expected symlink to ccache exists. Add pre-build instructions to add /usr/lib/mxe/usr/bin to the PATH. Amend the PATH for the mxe travis jobs as well. Signed-off-by: Rafael Kitover <rkitover@gmail.com>
This commit is contained in:
parent
bb23357d47
commit
7bbbf04716
|
@ -30,10 +30,12 @@ before_install:
|
|||
mingw-w64 )
|
||||
ARG=MinGW-w64-x86_64
|
||||
CMAKE=/usr/lib/mxe/usr/bin/x86_64-w64-mingw32.static-cmake
|
||||
PATH="$PATH:/usr/lib/mxe/usr/bin"
|
||||
;;
|
||||
mingw-w32 )
|
||||
ARG=MinGW-w64-i686
|
||||
CMAKE=/usr/lib/mxe/usr/bin/i686-w64-mingw32.static-cmake
|
||||
PATH="$PATH:/usr/lib/mxe/usr/bin"
|
||||
;;
|
||||
* )
|
||||
CMAKE=cmake
|
||||
|
|
13
installdeps
13
installdeps
|
@ -356,6 +356,8 @@ debian_installdeps() {
|
|||
;;
|
||||
esac
|
||||
|
||||
pre_build='export PATH="$PATH:/usr/lib/mxe/usr/bin"'
|
||||
|
||||
debian_rel=$(lsb_release -a 2>/dev/null | sed -En 's/^Codename:[[:space:]]*//p')
|
||||
|
||||
case "$debian_rel" in
|
||||
|
@ -394,8 +396,17 @@ debian_installdeps() {
|
|||
set -- "$@" "mxe-${target}-$dep"
|
||||
done
|
||||
check sudo apt-get --allow-unauthenticated -qq -y update
|
||||
# native wx-common needed for wxrc executable
|
||||
|
||||
# Native wx-common needed for wxrc executable.
|
||||
check sudo apt-get --allow-unauthenticated -qy install build-essential cmake ninja-build ccache wx-common "$@"
|
||||
|
||||
# The ccache symlink is broken in some versions of these mxe packages.
|
||||
ccache_link=/usr/lib/mxe/.ccache/bin/ccache
|
||||
|
||||
if [ ! -e "$ccache_link" ]; then
|
||||
sudo mkdir -p ${ccache_link%/*}
|
||||
sudo ln -sf /usr/bin/ccache "$ccache_link"
|
||||
fi
|
||||
fi
|
||||
|
||||
build_instructions
|
||||
|
|
Loading…
Reference in New Issue