gcc-force-options script moves gcc binary from /usr/bin/gcc to /usr/bin/gcc-real.
To correctly accelerate new binary qemu-binfmt requires symlink in /emul dirrectory.
Change-Id: Ie72fdc2775cbb2e1da00c2d8144a267bbfcfd9cf
Signed-off-by: Yury Usishchev <y.usishchev@samsung.com>
cp $TMP $tool
done
+if [ -d /emul ]; then
+ find -L /emul -type f -a -perm -a=x | grep -E '(gcc|g\+\+|c\+\+)$' | while read tool; do
+ ln -sf $(basename $tool) $tool-real
+ done
+fi
+
rm $TMP
tool=$(echo "$tool_real" | sed -e 's/-real$//')
mv $tool_real $tool
done
+if [ -d /emul ]; then
+ find /emul -name \*-real | while read tool_real; do
+ rm $tool_real
+ done
+fi