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
39 _cflags=$_cflags" -I$1"
48 _ldflags=$_ldflags" ${arg}"
58 _miscargs=$_miscargs" $1"
69 if [[ $_preproc -eq 1 ]]; then
70 run $_CC -E $CFLAGS $_cflags $_miscargs $_outfile
73 if [[ $_compile -eq 1 ]]; then
74 run $_CC $CFLAGS $_cflags $_miscargs -c $_outfile
78 if echo " $_miscargs" | grep '\.c' >/dev/null; then
79 tmpout=`mktemp acess_gccproxy.XXXXXXXXXX.o --tmpdir`
80 run $_CC $CFLAGS $_miscargs -c -o $tmpout
81 run $_LD $LDFLAGS $_ldflags $_libs $tmpout $_outfile
84 run $_LD $LDFLAGS $_ldflags $_miscargs $_outfile $LIBGCC_PATH