From 70c7a178c0826ff1862e7c622d25b1ff5fdfefd9 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Fri, 5 Mar 2010 17:04:08 +0100 Subject: [PATCH] gcc: improved case statement in gcc.conf for setting '-with-{arch,cpu,tune}' configure option --- base/gcc/gcc.conf | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/base/gcc/gcc.conf b/base/gcc/gcc.conf index 02acf186e..d3876075b 100644 --- a/base/gcc/gcc.conf +++ b/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