caam

view wrap/gcc @ 0:3578cc37f9cd

init
author yuuji@gentei.org
date Mon, 25 Jan 2010 17:32:28 +0900
parents
children 9dcdb591a0dc
line source
1 #!/bin/sh
2 CAAM_GCC=${CAAM_GCC:-/usr/bin/gcc}
3 ldf=${CAAM_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_GCC $ldf "$@"