3 # Get invocation path (which could be a symlink in $PATH)
10 fullpath=`readlink -f "$fullpath"`
13 BASEDIR=`dirname "$fullpath"`
16 make --no-print-directory -f $BASEDIR/getconfig.mk ARCH=x86 > $cfgfile
25 while [[ $# -gt 0 ]]; do
36 _cflags=$_cflags" -I$1"
45 _ldflags=$_ldflags" ${arg}"
55 _miscargs=$_miscargs" $1"
61 if [[ $_compile -eq 1 ]]; then
62 # echo $_CC $CFLAGS $*
63 $_CC $CFLAGS $_miscargs -c $_outfile
64 else if echo " $_miscargs" | grep '\.c' >/dev/null; then
65 tmpout=`mktemp acess_gccproxy.XXXXXXXXXX.o --tmpdir`
66 $_CC $CFLAGS $_miscargs -c -o $tmpout
67 $_LD $LDFLAGS $_ldflags $_libs $tmpout $_outfile
70 $_LD $LDFLAGS $_ldflags $_miscargs $_outfile $LIBGCC_PATH