If both native and cross-compiler are installed (e. g. in qemu-accel build) the
gcc-force-options should only accelerate native compiler in order to keep
gcc-unforce-options work.
Change-Id: I1454fb199e6f849b89f7b16129e005894d800cbc
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
}
%{!?cross:
+sed -e 's|GCC_LIBSUBDIR|%{libsubdir}|' -i %{SOURCE15}
+
cp %{SOURCE15} %{SOURCE16} %{SOURCE18} %{buildroot}%{_prefix}/bin
chmod a+x %{buildroot}%{_prefix}/bin/gcc-force-options
chmod a+x %{buildroot}%{_prefix}/bin/gcc-unforce-options
}
%{!?cross:
+sed -e 's|GCC_LIBSUBDIR|%{libsubdir}|' -i %{SOURCE15}
+
cp %{SOURCE15} %{SOURCE16} %{SOURCE18} %{buildroot}%{_prefix}/bin
chmod a+x %{buildroot}%{_prefix}/bin/gcc-force-options
chmod a+x %{buildroot}%{_prefix}/bin/gcc-unforce-options
EOF
chmod +x $LD_TMP
-find -L /usr/*/gcc -type f -a -perm -a=x -name 'collect2' | while read tool; do
+find -L GCC_LIBSUBDIR -type f -a -perm -a=x -name 'collect2' | while read tool; do
mv $tool $tool-real
cp $LD_TMP $tool
done
}
%{!?cross:
+sed -e 's|GCC_LIBSUBDIR|%{libsubdir}|' -i %{SOURCE15}
+
cp %{SOURCE15} %{SOURCE16} %{SOURCE18} %{buildroot}%{_prefix}/bin
chmod a+x %{buildroot}%{_prefix}/bin/gcc-force-options
chmod a+x %{buildroot}%{_prefix}/bin/gcc-unforce-options