gm2
[Top][All Lists]
Advanced

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

[Gm2] rebuilt script


From: Gaius Mulley
Subject: [Gm2] rebuilt script
Date: Wed, 24 Dec 2014 16:17:16 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Hi,

I thought I'd post my rebuild script which I used on Debian Wheezy - it
has been amended to include setting the LD_LIBRARY_PATH (and also a
make install) to pick up the gm2 shared libraries.  Hopefully the error
count should drop dramatically if the shared libraries are picked up at
run time.  There is an architectural string in the script - the line:

   export LD_LIBRARY_PATH=$HOME/opt/lib64

which may need to be changed on your system..
Anyway hope this is of some help.

regards,
Gaius



#!/bin/bash

GCC=4.7.3

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

PROFILE=
LANGUAGES=c,c++,gm2,java
LANGUAGES=c,c++
LANGUAGES=c,c++,gm2

if [ -d $DIR ] ; then
   cd $DIR
   rm -rf build-${GCC}
   mkdir build-${GCC}
   cd build-${GCC}
   CFLAGS="-g $PROFILE" ../combined/gm2/gcc-versionno/configure \
    --prefix=$HOME/opt \
    --libexecdir=$HOME/opt/lib \
    --enable-threads=posix \
    --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 install
   export LD_LIBRARY_PATH=$HOME/opt/lib64
   make check-gm2
else
   echo "cannot find directory $DIR"
   exit 1
fi




reply via email to

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