Browse Source

gcc: improved case statement in gcc.conf for setting '-with-{arch,cpu,tune}' configure option

user/karasz/test/ecn
Christian Wiese 15 years ago committed by Alejandro Mery
parent
commit
70c7a178c0
  1. 4
      base/gcc/gcc.conf

4
base/gcc/gcc.conf

@ -18,9 +18,7 @@
if [ "${ver:0:3}" = "4.4" ]; then
for x in $GCC_WRAPPER_INSERT $GCC_WRAPPER_APPEND; do
case "$x" in
-march=*) var_append confopt " " "${x/-m/--with-}" ;;
-mcpu=*) var_append confopt " " "${x/-m/--with-}" ;;
-mtune=*) var_append confopt " " "${x/-m/--with-}" ;;
-march=*|-mcpu=*|-mtune=*) var_append confopt " " "${x/-m/--with-}" ;;
esac
done
fi

Loading…
Cancel
Save