summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-03-11 20:29:51 +0000
committerVincent Sanders <vince@kyllikki.org>2015-03-11 20:29:51 +0000
commit8286fe2d4dd6cbe8554947539ac0f10922353fb6 (patch)
tree02c904d091d11fe9fb84823c9731c06beab5a10c
parent4f25542d7abbf5e49645d1108b7723987d5be213 (diff)
downloadtoolchains-8286fe2d4dd6cbe8554947539ac0f10922353fb6.tar.gz
toolchains-8286fe2d4dd6cbe8554947539ac0f10922353fb6.tar.bz2
update 32bit mingw target for windows toolchain build
-rw-r--r--i686-w64-mingw32/Makefile60
-rw-r--r--x86_64-w64-mingw32/Makefile7
2 files changed, 34 insertions, 33 deletions
diff --git a/i686-w64-mingw32/Makefile b/i686-w64-mingw32/Makefile
index fda8123..4a5a7e7 100644
--- a/i686-w64-mingw32/Makefile
+++ b/i686-w64-mingw32/Makefile
@@ -2,11 +2,11 @@
# Build cross toolchain for i686 processor with a win32 (mingw) ABI
-UPSTREAM_GCC_VERSION := 4.6.3
-UPSTREAM_GCC_TARBALL := gcc-core-$(UPSTREAM_GCC_VERSION).tar.bz2
+UPSTREAM_GCC_VERSION := 4.8.4
+UPSTREAM_GCC_TARBALL := gcc-$(UPSTREAM_GCC_VERSION).tar.bz2
UPSTREAM_GCC_URI := http://ftpmirror.gnu.org/gcc/gcc-$(UPSTREAM_GCC_VERSION)/$(UPSTREAM_GCC_TARBALL)
-UPSTREAM_BINUTILS_VERSION := 2.22
+UPSTREAM_BINUTILS_VERSION := 2.25
UPSTREAM_BINUTILS_TARBALL := binutils-$(UPSTREAM_BINUTILS_VERSION).tar.bz2
UPSTREAM_BINUTILS_URI := http://ftpmirror.gnu.org/binutils/$(UPSTREAM_BINUTILS_TARBALL)
@@ -23,10 +23,9 @@ UPSTREAM_MPC_VERSION := 0.8.2
UPSTREAM_MPC_TARBALL := mpc-$(UPSTREAM_MPC_VERSION).tar.gz
UPSTREAM_MPC_URI := http://www.multiprecision.org/mpc/download/$(UPSTREAM_MPC_TARBALL)
-UPSTREAM_MINGW_VERSION := 2.0.4
-UPSTREAM_MINGW_TARBALL := mingw-w64-v$(UPSTREAM_MINGW_VERSION).tar.gz
-UPSTREAM_MINGW_URI := "http://downloads.sourceforge.net/project/mingw-w64/mingw-w64/mingw-w64-release/$(UPSTREAM_MINGW_TARBALL)?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fmingw-w64%2F&ts=1342830561&use_mirror=switch"
-
+UPSTREAM_MINGW_VERSION := 3.3.0
+UPSTREAM_MINGW_TARBALL := mingw-w64-v$(UPSTREAM_MINGW_VERSION).tar.bz2
+UPSTREAM_MINGW_URI := "http://downloads.sourceforge.net/project/mingw-w64/mingw-w64/mingw-w64-release/$(UPSTREAM_MINGW_TARBALL)?r=http%3A%2F%2Fmingw-w64.sourceforge.net%2Fdownload.php&ts=1426088797&use_mirror=cznic"
TOP := $(CURDIR)
RECIPES := $(TOP)/recipes
@@ -61,7 +60,7 @@ $(BUILDSTEPS)/gcc-core.d: $(BUILDSTEPS)/srcdir-step3.d $(BUILDSTEPS)/binutils.d
mkdir -p $(BUILDDIR)/gcc
cd $(BUILDDIR)/gcc && PATH="$(PREFIX)/bin:$(PATH)" $(GCC_SRCDIR)/configure \
--prefix=$(PREFIX) --target=$(TARGET_NAME) \
- --enable-languages=c --with-system-zlib --disable-multilib \
+ --enable-languages=c,c++ --with-system-zlib --disable-multilib \
--enable-shared --enable-fully-dynamic-string
cd $(BUILDDIR)/gcc && PATH="$(PREFIX)/bin:$(PATH)" make all-gcc
cd $(BUILDDIR)/gcc && PATH="$(PREFIX)/bin:$(PATH)" make install-gcc
@@ -79,22 +78,24 @@ $(BUILDSTEPS)/gcc-final.d: $(BUILDSTEPS)/buildsteps.d $(BUILDSTEPS)/gcc-core.d $
$(BUILDSTEPS)/mingw-headers.d: $(BUILDSTEPS)/mingw-srcdir.d
mkdir -p $(BUILDDIR)/mingw-headers
- cd $(BUILDDIR)/mingw-headers && PATH="$(PREFIX)/bin:$(PATH)" $(MINGW_SRCDIR)/mingw-w64-headers/configure \
- --prefix=$(PREFIX) --host=$(TARGET_NAME)
+ cd $(BUILDDIR)/mingw-headers && PATH="$(PREFIX)/bin:$(PATH)" \
+ $(MINGW_SRCDIR)/mingw-w64-headers/configure \
+ --prefix=$(PREFIX)/$(TARGET_NAME) --host=$(TARGET_NAME)
cd $(BUILDDIR)/mingw-headers && PATH="$(PREFIX)/bin:$(PATH)" make
cd $(BUILDDIR)/mingw-headers && PATH="$(PREFIX)/bin:$(PATH)" make install
touch $@
$(BUILDSTEPS)/mingw-crt.d: $(BUILDSTEPS)/mingw-srcdir.d
mkdir -p $(BUILDDIR)/mingw-crt
- cd $(BUILDDIR)/mingw-crt && PATH="$(PREFIX)/bin:$(PATH)" $(MINGW_SRCDIR)/configure \
- --prefix=$(PREFIX) --host=$(TARGET_NAME)
+ cd $(BUILDDIR)/mingw-crt && PATH="$(PREFIX)/bin:$(PATH)" \
+ $(MINGW_SRCDIR)/configure \
+ --prefix=$(PREFIX)/$(TARGET_NAME) --host=$(TARGET_NAME)
cd $(BUILDDIR)/mingw-crt && PATH="$(PREFIX)/bin:$(PATH)" make
cd $(BUILDDIR)/mingw-crt && PATH="$(PREFIX)/bin:$(PATH)" make install
touch $@
$(BUILDSTEPS)/mingw-srcdir.d: $(SOURCESDIR)/$(UPSTREAM_MINGW_TARBALL)
- tar xzf $(SOURCESDIR)/$(UPSTREAM_MINGW_TARBALL)
+ tar xaf $(SOURCESDIR)/$(UPSTREAM_MINGW_TARBALL)
mv mingw-w64-v$(UPSTREAM_MINGW_VERSION) $(MINGW_SRCDIR)
touch $@
@@ -106,16 +107,16 @@ $(BUILDSTEPS)/srcdir-step3.d: $(BUILDSTEPS)/srcdir-step2.d
touch $@
$(BUILDSTEPS)/srcdir-step2.d: $(BUILDSTEPS)/srcdir-step1.d $(SOURCESDIR)/$(UPSTREAM_GMP_TARBALL) $(SOURCESDIR)/$(UPSTREAM_MPFR_TARBALL) $(SOURCESDIR)/$(UPSTREAM_MPC_TARBALL)
- tar xjf $(SOURCESDIR)/$(UPSTREAM_GMP_TARBALL)
+ tar xaf $(SOURCESDIR)/$(UPSTREAM_GMP_TARBALL)
mv gmp-$(UPSTREAM_GMP_VERSION) $(GCC_SRCDIR)/gmp
- tar xjf $(SOURCESDIR)/$(UPSTREAM_MPFR_TARBALL)
+ tar xaf $(SOURCESDIR)/$(UPSTREAM_MPFR_TARBALL)
mv mpfr-$(UPSTREAM_MPFR_VERSION) $(GCC_SRCDIR)/mpfr
- tar xzf $(SOURCESDIR)/$(UPSTREAM_MPC_TARBALL)
+ tar xaf $(SOURCESDIR)/$(UPSTREAM_MPC_TARBALL)
mv mpc-$(UPSTREAM_MPC_VERSION) $(GCC_SRCDIR)/mpc
touch $@
$(BUILDSTEPS)/srcdir-step1.d: $(SOURCESDIR)/$(UPSTREAM_GCC_TARBALL)
- tar xjf $(SOURCESDIR)/$(UPSTREAM_GCC_TARBALL)
+ tar xaf $(SOURCESDIR)/$(UPSTREAM_GCC_TARBALL)
mv gcc-$(UPSTREAM_GCC_VERSION) $(GCC_SRCDIR)
touch $@
@@ -133,7 +134,7 @@ $(BUILDSTEPS)/binutils.d: $(BUILDSTEPS)/binutils-srcdir.d
touch $@
$(BUILDSTEPS)/binutils-srcdir.d: $(SOURCESDIR)/$(UPSTREAM_BINUTILS_TARBALL)
- tar xjf $(SOURCESDIR)/$(UPSTREAM_BINUTILS_TARBALL)
+ tar xaf $(SOURCESDIR)/$(UPSTREAM_BINUTILS_TARBALL)
mv binutils-$(UPSTREAM_BINUTILS_VERSION) $(BINUTILS_SRCDIR)
touch $@
@@ -141,27 +142,27 @@ $(BUILDSTEPS)/binutils-srcdir.d: $(SOURCESDIR)/$(UPSTREAM_BINUTILS_TARBALL)
# Rules to fetch upstream sources
###
-$(SOURCESDIR)/$(UPSTREAM_GCC_TARBALL): $(SOURCESDIR)/sourcesdir.d
+$(SOURCESDIR)/$(UPSTREAM_GCC_TARBALL):
wget -q -O $@ $(UPSTREAM_GCC_URI)
touch $@
-$(SOURCESDIR)/$(UPSTREAM_GMP_TARBALL): $(SOURCESDIR)/sourcesdir.d
+$(SOURCESDIR)/$(UPSTREAM_GMP_TARBALL):
wget -q -O $@ $(UPSTREAM_GMP_URI)
touch $@
-$(SOURCESDIR)/$(UPSTREAM_MPFR_TARBALL): $(SOURCESDIR)/sourcesdir.d
+$(SOURCESDIR)/$(UPSTREAM_MPFR_TARBALL):
wget -q -O $@ $(UPSTREAM_MPFR_URI)
touch $@
-$(SOURCESDIR)/$(UPSTREAM_MPC_TARBALL): $(SOURCESDIR)/sourcesdir.d
+$(SOURCESDIR)/$(UPSTREAM_MPC_TARBALL):
wget -q -O $@ $(UPSTREAM_MPC_URI)
touch $@
-$(SOURCESDIR)/$(UPSTREAM_BINUTILS_TARBALL): $(SOURCESDIR)/sourcesdir.d
+$(SOURCESDIR)/$(UPSTREAM_BINUTILS_TARBALL):
wget -q -O $@ $(UPSTREAM_BINUTILS_URI)
touch $@
-$(SOURCESDIR)/$(UPSTREAM_MINGW_TARBALL): $(SOURCESDIR)/sourcesdir.d
+$(SOURCESDIR)/$(UPSTREAM_MINGW_TARBALL):
wget -q -O $@ $(UPSTREAM_MINGW_URI)
touch $@
@@ -169,13 +170,12 @@ $(SOURCESDIR)/$(UPSTREAM_MINGW_TARBALL): $(SOURCESDIR)/sourcesdir.d
# Rule to create buildsteps dir
###
-$(BUILDSTEPS)/buildsteps.d:
+$(BUILDSTEPS)/buildsteps.d: $(SOURCESDIR) $(SRCDIR)
mkdir -p $(BUILDSTEPS)
- mkdir -p $(SRCDIR)
touch $@
-$(SOURCESDIR)/sourcesdir.d:
- mkdir -p $(SOURCESDIR)
- ${RM} $@
- touch $@
+$(SOURCESDIR):
+ mkdir -p $@
+$(SRCDIR):
+ mkdir -p $@
diff --git a/x86_64-w64-mingw32/Makefile b/x86_64-w64-mingw32/Makefile
index 0476c53..c81cebd 100644
--- a/x86_64-w64-mingw32/Makefile
+++ b/x86_64-w64-mingw32/Makefile
@@ -80,15 +80,16 @@ $(BUILDSTEPS)/mingw-headers.d: $(BUILDSTEPS)/mingw-srcdir.d
mkdir -p $(BUILDDIR)/mingw-headers
cd $(BUILDDIR)/mingw-headers && PATH="$(PREFIX)/bin:$(PATH)" \
$(MINGW_SRCDIR)/mingw-w64-headers/configure \
- --prefix=$(PREFIX)/x86_64-w64-mingw32 --host=$(TARGET_NAME)
+ --prefix=$(PREFIX)/$(TARGET_NAME) --host=$(TARGET_NAME)
cd $(BUILDDIR)/mingw-headers && PATH="$(PREFIX)/bin:$(PATH)" make
cd $(BUILDDIR)/mingw-headers && PATH="$(PREFIX)/bin:$(PATH)" make install
touch $@
$(BUILDSTEPS)/mingw-crt.d: $(BUILDSTEPS)/mingw-srcdir.d
mkdir -p $(BUILDDIR)/mingw-crt
- cd $(BUILDDIR)/mingw-crt && PATH="$(PREFIX)/bin:$(PATH)" $(MINGW_SRCDIR)/configure \
- --prefix=$(PREFIX)/x86_64-w64-mingw32 --host=$(TARGET_NAME)
+ cd $(BUILDDIR)/mingw-crt && PATH="$(PREFIX)/bin:$(PATH)" \
+ $(MINGW_SRCDIR)/configure \
+ --prefix=$(PREFIX)/$(TARGET_NAME) --host=$(TARGET_NAME)
cd $(BUILDDIR)/mingw-crt && PATH="$(PREFIX)/bin:$(PATH)" make
cd $(BUILDDIR)/mingw-crt && PATH="$(PREFIX)/bin:$(PATH)" make install
touch $@