. /etc/init.d/tc-functions

if [ "`getBuild`" == "x86" ]; then
 LIBDIR="i686-linux-gnu"
elif [ "`getBuild`" == "armv7" ]; then
 LIBDIR="arm-linux-gnueabihf"
elif [ "`getBuild`" == "x86_64" ]; then
 LIBDIR=x86_64-linux-gnu
fi

if [ -d /tmp/tcloop/APPNAME/ ]; then
   /bb/cp -af /tmp/tcloop/APPNAME/usr/bin/*gcc* /usr/bin/
   /bb/cp -af /tmp/tcloop/APPNAME/usr/lib/gcc/* /usr/lib/gcc/
fi