Commit 2888c7ff authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

win64: Disable weak refs for libstdc++

This works around a build issue when building C++ for x86_64-w64-mingw32
using exceptions
See https://github.com/Alexpux/MINGW-packages/issues/1580
parent e6badc55
......@@ -43,6 +43,8 @@ RUN mkdir /build && cd /build && \
ln -s /build/mpfr-3.1.5 gcc-$GCC_VERSION/mpfr && \
ln -s /build/gmp-6.1.1 gcc-$GCC_VERSION/gmp && \
ln -s /build/mpc-1.0.3 gcc-$GCC_VERSION/mpc && \
sed -i '79i#define _GLIBCXX_USE_WEAK_REF 0' \
gcc-$GCC_VERSION/libstdc++-v3/config/os/mingw32-w64/os_defines.h
cd gcc-$GCC_VERSION && mkdir build && cd build && \
../configure --prefix=$TOOLCHAIN_PREFIX \
--target=$TARGET_TUPLE \
......
Markdown is supported
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