# $Id$
#
# minimum rc file for sh-compatible shells
#

# # install gcc-trunk
# # apt-get install libmpc-dev
# svn co svn://gcc.gnu.org/svn/gcc/trunk gcc-trunk-src
# mkdir gcc-trunk-build
# cd gcc-trunk-build
#   ../gcc-trunk-src/configure --prefix=$HOME/gcc-trunk-bin
#   make bootstrap
#   make install

root=/home/fabien/GCCTK

# where is gcc trunk
gcc=/home/fabien/gcc-trunk-bin
PATH=$gcc/bin:$PATH
export LD_LIBRARY_PATH=$gcc/lib:$gcc/lib64:$root/prod/extern/lib:$LD_LIBRARY_PATH

# default architecture
export PIPS_ARCH=LINUX_x86_64_LL

# gcc strict compilation in "makes/config.mk":
#   COPT += -Werror -Wno-error=multistatement-macros -Wno-error=cast-function-type -Wno-error=clobbered
#   PIPS_NO_GPIPS = 1
#   PIPS_ENABLE_FORTRAN95 =

unset PIPS_CC
# with recent gcc avoid "stdc-predef.h"
export PIPS_CPP="gcc -std=c99 -E -C -ffreestanding"

# subversion repositories
# export NEWGEN_SVN=https://svn.cri.mines-paristech.fr/svn/newgen
# export LINEAR_SVN=https://svn.cri.mines-paristech.fr/svn/linear
# export PIPS_SVN=https://svn.cri.mines-paristech.fr/svn/pips

# software roots
# needed for polylib
export EXTERN_ROOT=$root/prod/extern

export PIPS_F77=gfortran
export PIPS_F90=gfortran

# fix path
export PATH=$PATH:/usr/bin:/bin:$root/prod/pips/bin:$root/prod/pips/utils

# ignore these static inlined function
export PIPS_IGNORE_FUNCTION_RX='!__bswap_'
