#!/bin/sh
CAAM_CXX=${CAAM_CXX:-`which c++`}
ldf=''
if [ x"${CAAM_LDF+x}" = x"x" ]; then
# if CAAM_LDF is unset
if [ x"$LD_RUN_PATH" != x"" ]; then
oifs=$IFS
IFS=:
for d in $LD_RUN_PATH; do
ldf=$ldf"${ldf:+ }-R $d -L $d"
done
IFS=$oifs
fi
fi
# echo cmd=$CAAM_CXX $ldf "$@"
exec $CAAM_CXX $ldf "$@"