X-Git-Url: https://main.carlh.net/gitweb/?p=mingw-build.git;a=blobdiff_plain;f=build_binutils_windows.sh;fp=build_binutils_windows.sh;h=a0b9a309c5df9138facc5796a60d523612217bcf;hp=0000000000000000000000000000000000000000;hb=e0f77821027e7e6f12ac85a5cddd9f68d5e09be2;hpb=df21fb6c47dee2c70e059b331ea0ea178c80d9bf diff --git a/build_binutils_windows.sh b/build_binutils_windows.sh new file mode 100644 index 0000000..a0b9a30 --- /dev/null +++ b/build_binutils_windows.sh @@ -0,0 +1,13 @@ +#!/bin/bash -e +# +# Build binutils running on Windows and targeting Windows. +# At the moment this is just for addr2line.exe + +tar xzf Archives/binutils-2.24.tar.gz +mkdir -p binutils-windows-build-$MINGW_TARGET +cd binutils-windows-build-$MINGW_TARGET +PATH=$MINGW_PREFIX/bin:$PATH ../binutils-2.24/configure --with-sysroot=$MINGW_PREFIX --prefix=/tmp/frobozz --disable-multilib \ + --host=$MINGW_TARGET --target=$MINGW_TARGET --enable-targets=$MINGW_TARGET +PATH=$MINGW_PREFIX/bin:$PATH make $MINGW_PARALLEL +sudo cp binutils/.libs/addr2line.exe $MINGW_PREFIX/bin +