#! /bin/sh -f

args=''
incdirs=''

for arg in ` echo "$CPLUS_INCLUDE_PATH" | tr : ' ' `
do
  incdirs="$incdirs '-I$arg'"
done

for arg
do
  case "$arg" in
  -I*)
    incdirs="$incdirs '$arg'"
    ;;
  *)
    args="$args '$arg'"
    ;;
  esac
done

eval "c++ $incdirs  -O2 -fno-strict-aliasing -pipe  -Wall  -Wno-unused -D_REENTRANT -D_THREAD_SAFE   -DPIC -fPIC $args"
exit $?
