This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Script to download gcc prerequisites


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]