caam

view wrap/c++ @ 0:3578cc37f9cd

init
author yuuji@gentei.org
date Mon, 25 Jan 2010 17:32:28 +0900
parents
children b403946716d6
line source
1 #!/bin/sh
2 CAAM_CXX=${CAAM_CXX:-`which c++`}
3 ldf=''
4 if [ x"${CAAM_LDF+x}" = x"x" ]; then
5 # if CAAM_LDF is unset
6 if [ x"$LD_RUN_PATH" != x"" ]; then
7 oifs=$IFS
8 IFS=:
9 for d in $LD_RUN_PATH; do
10 ldf=$ldf"${ldf:+ }-R $d -L $d"
11 done
12 IFS=$oifs
13 fi
14 fi
15 # echo cmd=$CAAM_GCC $ldf "$@"
16 exec $CAAM_CXX $ldf "$@"