Statistics
| Branch: | Tag: | Revision:

streamers-build / setenv-mingw @ master

History | View | Annotate | Download (736 Bytes)

1 3db6932f Csaba Kiraly
if which i586-mingw32msvc-nm; then
2
  export CROSSPREFIX=i586-mingw32msvc-
3 759754a2 Csaba Kiraly
  export HOSTARCH="i586-pc-mingw32"
4 3db6932f Csaba Kiraly
elif which i686-w64-mingw32-nm; then
5
  export CROSSPREFIX=i686-w64-mingw32-
6 759754a2 Csaba Kiraly
  export HOSTARCH="i686-w64-mingw32"
7 3db6932f Csaba Kiraly
else
8
  echo "Error: gcc-mingw32 doesn't seem to be installed"
9
  exit 1
10
fi
11 aba07be5 Csaba Kiraly
12 89c6ac99 Csaba Kiraly
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 aba07be5 Csaba Kiraly
export LIBS="-lwsock32 -lws2_32"