Skip to content

Instantly share code, notes, and snippets.

@martell
Created August 11, 2016 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save martell/07d03f57ee861718ea10f0982c0fb175 to your computer and use it in GitHub Desktop.
Save martell/07d03f57ee861718ea10f0982c0fb175 to your computer and use it in GitHub Desktop.
#!/bin/bash
PREFIX=~/llvm
eval PREFIX=$PREFIX
#TARGET=i686-w64-mingw32
#export CC=clang CXX=clang++
tools="gendef genlib"
cd ..
mkdir build-mingw-w64-tools
local cur=
for cur in ${tools}; do
mkdir -p build-mingw-w64-tools/${cur}
cd build-mingw-w64-tools/${cur}
../../mingw-w64/mingw-w64-tools/${cur}/configure \
--prefix=/usr
make
cd ../..
done
local cur=
for cur in ${tools}; do
cd build-mingw-w64-tools/${cur}
make DESTDIR=$PREFIX install
cd ../..
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment