Statistics
| Branch: | Tag: | Revision:

streamers-build / setenv-mingw @ master

History | View | Annotate | Download (736 Bytes)

1
if which i586-mingw32msvc-nm; then
2
  export CROSSPREFIX=i586-mingw32msvc-
3
  export HOSTARCH="i586-pc-mingw32"
4
elif which i686-w64-mingw32-nm; then
5
  export CROSSPREFIX=i686-w64-mingw32-
6
  export HOSTARCH="i686-w64-mingw32"
7
else
8
  echo "Error: gcc-mingw32 doesn't seem to be installed"
9
  exit 1
10
fi
11

    
12
export CC=${CROSSPREFIX}gcc
13
export CXX=${CROSSPREFIX}g++
14
export CPP=${CROSSPREFIX}cpp
15
export LD=${CROSSPREFIX}ld
16
export AR=${CROSSPREFIX}ar
17
export AS=${CROSSPREFIX}as
18
export NM=${CROSSPREFIX}nm
19
export STRIP=${CROSSPREFIX}strip
20
export RANLIB=${CROSSPREFIX}ranlib
21
export DLLTOOL=${CROSSPREFIX}dlltool
22
export OBJDUMP=${CROSSPREFIX}objdump
23
export RC=${CROSSPREFIX}windres
24
export WINDRES=${CROSSPREFIX}windres
25
export LIBS="-lwsock32 -lws2_32"