Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- if [ "$TARGET" = "" ]; then
- TARGET=`basename $0 -make.sh`
- fi
- if [ "$TARGET" = "" -o "$TARGET" = "cross" ]; then
- TARGET=i686-w64-mingw32
- fi
- if [ "$PREFIX" != "" ]; then
- PATH="$PREFIX/bin:$PREFIX/$TARGET/bin:$PATH"
- export PATH
- PKG_CONFIG_PATH=$PREFIX/$TARGET/lib/pkgconfig
- export PKG_CONFIG_PATH
- fi
- if [ "$PREFIX" != "" ]; then
- PATH="$PREFIX/bin:$PREFIX/$TARGET/bin:$PATH"
- export PATH
- fi
- export CC="$TARGET-gcc -static-libgcc"
- export CXX="$TARGET-g++ -static-libgcc"
- exec make $*
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement