Script to download gcc prerequisites

NightStrike nightstrike@gmail.com
Thu May 27 18:59:00 GMT 2010


On Tue, May 25, 2010 at 12:08 PM, Andrew Haley <aph@redhat.com> wrote:
> +wget http://www.mpfr.org/mpfr-current/$MPFR.tar.gz || exit 1

This doesn't work if the version specified isn't the current version.
For mingw-w64, we use this:

(this is from a GNU makefile, for purposes of understanding the strip syntax)

$(WGET) $@ http://www.mpfr.org/mpfr-$(strip
${MPFR_VERSION})/mpfr-$(strip ${MPFR_VERSION}).tar.bz2

so really, for your purposes, you would want something like:

wget http://www.mpfr.org/$MPFR/$MPFR.tar.gz

See http://mingw-w64.svn.sourceforge.net/viewvc/mingw-w64/experimental/buildsystem/makebuildroot.mk?view=markup
for details or for more ideas on what you can do.  We use that
makefile to download and build a complete toolchain.



More information about the Gcc-patches mailing list