gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gm2] Building (cross-compiling) gcc+gm2 on Debain testing targeting


From: Gaius Mulley
Subject: Re: [Gm2] Building (cross-compiling) gcc+gm2 on Debain testing targeting MinGW
Date: Thu, 06 Mar 2014 11:14:12 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)

Frode Odegard <address@hidden> writes:

> I myself have tried to do a build on Ubuntu 13.10 and can't seem to make it 
> work.
>
> Has anyone else successfully built GM2 on Ubuntu?
>
> Kind regards,
>
>
> Frode Odegard

Hi Frode,

I've built successfully built gm2 on arm Ubuntu 13.10 using the
following script:


#/bin/bash

GCC=4.7.3

DIR=$HOME/GM2/graft-${GCC}

PROFILE=
LANGUAGES=c,c++,gm2

if [ -d $DIR ] ; then
   cd $DIR
   rm -rf build-${GCC}
   mkdir build-${GCC}
   cd build-${GCC}
   export PATH=$HOME/extra/bin:$PATH
   CXXFLAGS=-g BOOT_CFLAGS=-g CFLAGS="-g -gdwarf-2 $PROFILE"
   ../combined/gm2/gcc-versionno/configure \
    --prefix=$HOME/opt \
    --libexecdir=$HOME/opt/lib \
    --enable-shared \
    --enable-threads=posix --enable-__cxa_atexit \
    --enable-clocale=gnu --enable-languages=${LANGUAGES} \
    --disable-multilib --disable-bootstrap --enable-checking

   if ! CXXFLAGS=-g BOOT_CFLAGS=-g CFLAGS="-g -gdwarf-2 $PROFILE" time
   make ; then
       echo "make failed"
       exit 1
   fi
   make check-gm2
else
   echo "cannot find directory $DIR"
   exit 1
fi


regards,
Gaius



reply via email to

[Prev in Thread] Current Thread [Next in Thread]