Browse Source

gcc: hack to correctly translate -m options into gcc confopts for gcc 4.6

user/chris/test/arm
Christian Wiese 13 years ago
parent
commit
bffda73bfe
  1. 2
      base/gcc/gcc.conf

2
base/gcc/gcc.conf

@ -18,7 +18,7 @@ hook_add preconf 1 'sed -i -e "s/@toolexeclibdir@/@toolexeclibdir@\/gcc/" libffi
# provide same settings we use for -m{arch,cpu,tune} via configure options
# so they are default compiler settings on the final target machine
if [ "${ver:0:3}" = "4.4" ]; then
if [ "${ver:0:3}" = "4.6" ]; then
for x in $GCC_WRAPPER_INSERT $GCC_WRAPPER_APPEND; do
case "$x" in
-mabi=*|-march=*|-mcpu=*|-mtune=*|-mfpu=*) var_append confopt " " "${x/-m/--with-}" ;;

Loading…
Cancel
Save