зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 7de6c5aab8b4 (bug 1471698) for build bustages on Windows MinGW all on a CLOSED TREE
This commit is contained in:
Родитель
a7067c8900
Коммит
af0293e185
|
@ -56,6 +56,11 @@ RANLIB=llvm-ranlib
|
|||
# For Stylo
|
||||
BINDGEN_CFLAGS="-I$TOOLTOOL_DIR/clang/i686-w64-mingw32/include/c++/v1 -I$TOOLTOOL_DIR/clang/i686-w64-mingw32/include"
|
||||
|
||||
# Bug 1471698 - Work around binutils corrupting mingw clang binaries.
|
||||
LDFLAGS="-Wl,-S"
|
||||
STRIP=/bin/true
|
||||
OBJCOPY=/bin/true
|
||||
|
||||
# We want to make sure we use binutils and other binaries in the tooltool
|
||||
# package.
|
||||
mk_add_options "export PATH=$TOOLTOOL_DIR/clang/bin:$TOOLTOOL_DIR/mingw32/bin:$TOOLTOOL_DIR/wine/bin:$TOOLTOOL_DIR/upx/bin:$TOOLTOOL_DIR/fxc2/bin:$PATH"
|
||||
|
|
|
@ -56,6 +56,11 @@ RANLIB=llvm-ranlib
|
|||
# For Stylo
|
||||
BINDGEN_CFLAGS="-I$TOOLTOOL_DIR/clang/x86_64-w64-mingw32/include/c++/v1 -I$TOOLTOOL_DIR/clang/x86_64-w64-mingw32/include"
|
||||
|
||||
# Bug 1471698 - Work around binutils corrupting mingw clang binaries.
|
||||
LDFLAGS="-Wl,-S"
|
||||
STRIP=/bin/true
|
||||
OBJCOPY=/bin/true
|
||||
|
||||
# We want to make sure we use binutils and other binaries in the tooltool
|
||||
# package.
|
||||
mk_add_options "export PATH=$TOOLTOOL_DIR/clang/bin:$TOOLTOOL_DIR/mingw32/bin:$TOOLTOOL_DIR/wine/bin:$TOOLTOOL_DIR/upx/bin:$TOOLTOOL_DIR/fxc2/bin:$PATH"
|
||||
|
|
|
@ -36,6 +36,10 @@ mingw_version=164990461720e0ed6ea5ea9f359d78595b1a459a
|
|||
libunwind_version=6ee92fcc97350ae32db3172a269e9afcc2bab686
|
||||
llvm_mingw_version=c3a16814bd26aa6702e1e5b482a3d9044bb0f725
|
||||
|
||||
binutils_version=2.27
|
||||
binutils_ext=bz2
|
||||
binutils_sha=369737ce51587f92466041a97ab7d2358c6d9e1b6490b3940eb09fb0a9a6ac88
|
||||
|
||||
# This is default value of _WIN32_WINNT. Gecko configure script explicitly sets this,
|
||||
# so this is not used to build Gecko itself. We default to 0x601, which is Windows 7.
|
||||
default_win32_winnt=0x601
|
||||
|
@ -68,6 +72,14 @@ prepare() {
|
|||
git checkout $llvm_mingw_version
|
||||
popd
|
||||
|
||||
wget -c --progress=dot:mega ftp://ftp.gnu.org/gnu/binutils/binutils-$binutils_version.tar.$binutils_ext
|
||||
if [ "$(sha256sum binutils-$binutils_version.tar.$binutils_ext)" != "$binutils_sha binutils-$binutils_version.tar.$binutils_ext" ];
|
||||
then
|
||||
echo Corrupted binutils archive
|
||||
exit 1
|
||||
fi
|
||||
tar -jxf binutils-$binutils_version.tar.$binutils_ext
|
||||
|
||||
popd
|
||||
}
|
||||
|
||||
|
@ -270,13 +282,23 @@ build_libcxx() {
|
|||
}
|
||||
|
||||
build_utils() {
|
||||
mkdir binutils
|
||||
pushd binutils
|
||||
$SRC_DIR/binutils-$binutils_version/configure --prefix=$INSTALL_DIR \
|
||||
--disable-multilib \
|
||||
--disable-nls \
|
||||
--target=$machine-w64-mingw32
|
||||
make $make_flags
|
||||
|
||||
# Manually install only nm
|
||||
cp binutils/nm-new $INSTALL_DIR/bin/$machine-w64-mingw32-nm
|
||||
|
||||
pushd $INSTALL_DIR/bin/
|
||||
ln -s llvm-nm $machine-w64-mingw32-nm
|
||||
ln -s llvm-strip $machine-w64-mingw32-strip
|
||||
ln -s llvm-readobj $machine-w64-mingw32-readobj
|
||||
ln -s llvm-objcopy $machine-w64-mingw32-objcopy
|
||||
./clang $SRC_DIR/llvm-mingw/wrappers/windres-wrapper.c -O2 -Wl,-s -o $machine-w64-mingw32-windres
|
||||
popd
|
||||
|
||||
popd
|
||||
}
|
||||
|
||||
export PATH=$INSTALL_DIR/bin:$PATH
|
||||
|
|
Загрузка…
Ссылка в новой задаче