1 include $(TOP)/config/make.cfg
3 HOSTAROSGCCUSENEWLIB = TRUE
6 HOSTMPFRVERSION = 2.3.2
7 HOSTAROSNEWLIBVERSION = 1.16.0
8 HOSTAROSBINUTILSVERSION = 2.18
9 HOSTAROSGCCVERSION = 4.3.2
11 HOSTAROSGCCLANGUAGES = c,c++
13 ifeq ($(HOSTAROSGCCUSENEWLIB),TRUE)
14 NEWLIB_FLAGS = --with-newlib
19 #MM- host-build-tools : host-build-tools-hostaroscrosstools
21 #MM- host-build-tools-hostaroscrosstools : host-build-tools-hostarosgcc
23 #MM- host-build-tools-hostarosgcc : host-build-tools-hostgmp host-build-tools-hostmpfr host-build-tools-hostarosnewlib host-build-tools-hostarosbinutils
25 #MM- host-build-tools-hostgmp : host-build-tools-hostgmp-quick
26 #MM- host-build-tools-hostmpfr : host-build-tools-hostmpfr-quick
27 #MM- host-build-tools-hostarosbinutils : host-build-tools-hostarosbinutils-quick
28 #MM- host-build-tools-hostarosgcc : host-build-tools-hostarosgcc-quick
30 #MM host-build-tools-hostarosgcc--configure : host-build-tools-hostarosnewliblink
32 #MM host-build-tools-hostarosnewliblink : host-build-tools-hostarosnewlib host-build-tools-hostarosgcc--fetch
34 %fetch_and_build mmake=host-build-tools-hostgmp package=gmp version=$(HOSTGMPVERSION) compiler=host \
35 package_repo="http://ftp.sunet.se/pub/gnu/gmp" patch=no \
38 %fetch_and_build mmake=host-build-tools-hostmpfr package=mpfr version=$(HOSTMPFRVERSION) compiler=host \
39 package_repo="http://www.mpfr.org/mpfr-current" patch=no \
40 prefix="$(TOOLDIR)" extraoptions="--with-gmp=$(TOOLDIR)"
42 %fetch_and_build mmake=host-build-tools-hostarosbinutils package=binutils version=$(HOSTAROSBINUTILSVERSION) compiler=host \
43 package_repo="http://ftp.gnu.org/gnu/binutils" patch=no \
44 prefix="$(TOOLDIR)" extraoptions="--target=$(AROS_TARGET_CPU)-elf --bindir=$(TOOLDIR) --disable-nls --disable-shared --disable-threads"
46 %fetch_and_build mmake=host-build-tools-hostarosgcc package=gcc version=$(HOSTAROSGCCVERSION) compiler=host \
47 package_repo="http://ftp.gnu.org/gnu/gcc/gcc-$(HOSTAROSGCCVERSION)" patch=no \
48 prefix="$(TOOLDIR)" extraoptions="--target=$(AROS_TARGET_CPU)-elf --bindir=$(TOOLDIR) --enable-languages=$(HOSTAROSGCCLANGUAGES) --disable-libssp --disable-nls --disable-shared --disable-threads --disable-multilib --with-as=$(TOOLDIR)/$(AROS_TARGET_CPU)-elf-as --with-gnu-as --with-ld=$(TOOLDIR)/$(AROS_TARGET_CPU)-elf-ld --with-gnu-ld --with-gmp=$(TOOLDIR) --with-mpfr=$(TOOLDIR) --without-pic $(NEWLIB_FLAGS)"
50 .PHONY : host-build-tools-hostarosnewlib
52 host-build-tools-hostarosnewlib :
53 %fetch archive=newlib-$(HOSTAROSNEWLIBVERSION) suffixes="tar.gz" \
54 location=$(PORTSSOURCEDIR) destination=$(HOSTDIR)/Ports/newlib \
55 archive_origins=". ftp://sources.redhat.com/pub/newlib"
58 host-build-tools-hostarosnewliblink :
59 ln -sf $(HOSTDIR)/Ports/newlib/newlib-$(HOSTAROSNEWLIBVERSION)/newlib $(host-build-tools-hostarosgcc--package-dir)/newlib;
60 ln -sf $(HOSTDIR)/Ports/newlib/newlib-$(HOSTAROSNEWLIBVERSION)/libgloss $(host-build-tools-hostarosgcc--package-dir)/libgloss;