|
|
|
@ -27,12 +27,12 @@
|
|
|
|
|
# Depends: d/mingw32-binutils |
|
|
|
|
|
|
|
|
|
# Source packages infos (checksums and filenames in `checksums' file) |
|
|
|
|
VERSION=${VERSION:-3.16} # MinGW runtime's version |
|
|
|
|
VERSION=${VERSION:-3.18} # Use MinGW runtime's version as package version |
|
|
|
|
BASEURL=${BASEURL:-http://downloads.sourceforge.net/mingw} |
|
|
|
|
|
|
|
|
|
# Build infos |
|
|
|
|
NAMEPKG=${NAMEPKG:-mingw32-libs} |
|
|
|
|
BUILD=${BUILD:-2GGD} |
|
|
|
|
BUILD=${BUILD:-1GGD} |
|
|
|
|
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')} |
|
|
|
|
TARGET=${TARGET:-i686-pc-mingw32} |
|
|
|
|
JOBS=${JOBS:-1} |
|
|
|
@ -103,6 +103,7 @@ $TMP/mingw32/gcc-*/configure \
|
|
|
|
|
--enable-languages=c \ |
|
|
|
|
--disable-debug \ |
|
|
|
|
--disable-nls \ |
|
|
|
|
--disable-shared \ |
|
|
|
|
--with-gcc \ |
|
|
|
|
--with-as=/opt/mingw32/bin/i686-pc-mingw32-as \ |
|
|
|
|
--with-ld=/opt/mingw32/bin/i686-pc-mingw32-ld \ |
|
|
|
@ -117,7 +118,8 @@ PATH=$PATH:$TMP/mingw32/stage1/bin
|
|
|
|
|
# Compile Win32 API libraries |
|
|
|
|
cd $TMP/mingw32/w32api-* |
|
|
|
|
mkdir build && cd build |
|
|
|
|
CFLAGS="$CPUOPT" \ |
|
|
|
|
CFLAGS="$CPUOPT -mms-bitfields" \ |
|
|
|
|
LDFLAGS="-s" \ |
|
|
|
|
../configure \ |
|
|
|
|
--prefix=/opt/mingw32 \ |
|
|
|
|
--host=$TARGET \ |
|
|
|
@ -128,7 +130,8 @@ make install prefix=$PKG/opt/mingw32
|
|
|
|
|
# Compile MinGW runtime |
|
|
|
|
cd $TMP/mingw32/mingwrt-* |
|
|
|
|
mkdir build && cd build |
|
|
|
|
CFLAGS="-I$PKG/opt/mingw32/include $CPUOPT" \ |
|
|
|
|
CFLAGS="-I$PKG/opt/mingw32/include $CPUOPT -mms-bitfields" \ |
|
|
|
|
LDFLAGS="-s" \ |
|
|
|
|
../configure \ |
|
|
|
|
--prefix=/opt/mingw32 \ |
|
|
|
|
--host=$TARGET \ |
|
|
|
|