caam

view wrap/c++ @ 15:f1f17c1c87f8

Keep DESTDIR
author HIROSE Yuuji <yuuji@gentei.org>
date Wed, 11 Mar 2015 08:22:07 +0900
parents 3578cc37f9cd
children 22d4ea8f368e
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_CXX $ldf "$@"
16 exec $CAAM_CXX $ldf "$@"