git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Modules/NTFS - ReadDir/FindDir appear to work well
[tpg/acess2.git]
/
Tools
/
GCCProxy
/
gccproxy.sh
diff --git
a/Tools/GCCProxy/gccproxy.sh
b/Tools/GCCProxy/gccproxy.sh
index
0dd6864
..
7448d38
100755
(executable)
--- a/
Tools/GCCProxy/gccproxy.sh
+++ b/
Tools/GCCProxy/gccproxy.sh
@@
-73,12
+73,15
@@
while [[ $# -gt 0 ]]; do
done
run() {
done
run() {
- #echo --- $*
+ if [[ "x$GCCPROXY_DEBUG" != "x" ]]; then
+ echo --- $*
+ fi
$*
return $?
}
_ldflags="-lposix -lpsocket "$_ldflags
$*
return $?
}
_ldflags="-lposix -lpsocket "$_ldflags
+_cflags=$_cflags" -fno-omit-frame-pointer"
cfgfile=`mktemp`
make --no-print-directory -f $BASEDIR/getconfig.mk ARCH=x86 TYPE=$_linktype > $cfgfile
cfgfile=`mktemp`
make --no-print-directory -f $BASEDIR/getconfig.mk ARCH=x86 TYPE=$_linktype > $cfgfile
@@
-87,8
+90,21
@@
rm $cfgfile
#echo "_compile = $_compile, _preproc = $_preproc"
#echo "_compile = $_compile, _preproc = $_preproc"
+if [[ "x$_verarg" != "x" ]]; then
+ if [[ "x$_actas" == "xld" ]]; then
+ run $_LD $_miscargs $_verarg
+ else
+ run $_CC $_miscargs $_verarg
+ fi
+ exit $?
+fi
+
if [[ "x$_actas" == "xld" ]]; then
if [[ "x$_actas" == "xld" ]]; then
- run $_LD $LDFLAGS $_ldflags $_outfile $_miscargs $LIBGCC_PATH $_libs
+ if echo "$_miscargs" | grep '\.o\|\.a'; then
+ run $_LD $LDFLAGS $_ldflags $_outfile $_miscargs $LIBGCC_PATH $_libs
+ else
+ run $_LD $_miscargs $_verarg
+ fi
exit $?
fi
exit $?
fi
@@
-101,11
+117,11
@@
elif [[ $_compile -eq 1 ]]; then
elif echo " $_miscargs" | grep '\.c' >/dev/null; then
tmpout=`mktemp acess_gccproxy.XXXXXXXXXX.o --tmpdir`
run $_CC $CFLAGS $_cflags $_miscargs -c -o $tmpout
elif echo " $_miscargs" | grep '\.c' >/dev/null; then
tmpout=`mktemp acess_gccproxy.XXXXXXXXXX.o --tmpdir`
run $_CC $CFLAGS $_cflags $_miscargs -c -o $tmpout
- run $_LD $LDFLAGS $_ldflags $_libs $tmpout $_outfile $
LIBGCC_PATH $_libs
+ run $_LD $LDFLAGS $_ldflags $_libs $tmpout $_outfile $
_libs $LIBGCC_PATH
_rv=$?
rm $tmpout
exit $_rv
else
_rv=$?
rm $tmpout
exit $_rv
else
- run $_LD $_ldflags $_miscargs $_outfile $LDFLAGS $
LIBGCC_PATH $_libs
+ run $_LD $_ldflags $_miscargs $_outfile $LDFLAGS $
_libs $LIBGCC_PATH
fi
fi
UCC
git Repository :: git.ucc.asn.au