From c930cf403f97b9925d6cbaa6df4fa25baa22470f Mon Sep 17 00:00:00 2001
From: Christian Wiese <chris@opensde.org>
Date: Wed, 27 Jun 2012 01:10:16 +0200
Subject: [PATCH] gcc: improved to also inject --with-abi depending on -mabi

---
 base/gcc/gcc.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/base/gcc/gcc.conf b/base/gcc/gcc.conf
index bb832e785..b8b3fa9a9 100644
--- a/base/gcc/gcc.conf
+++ b/base/gcc/gcc.conf
@@ -21,7 +21,7 @@ hook_add preconf 1 'sed -i -e "s/@toolexeclibdir@/@toolexeclibdir@\/gcc/" libffi
 if [ "${ver:0:3}" = "4.4" ]; then
   for x in $GCC_WRAPPER_INSERT $GCC_WRAPPER_APPEND; do
     case "$x" in
-      -march=*|-mcpu=*|-mtune=*) var_append confopt " " "${x/-m/--with-}" ;;
+      -mabi=*|-march=*|-mcpu=*|-mtune=*) var_append confopt " " "${x/-m/--with-}" ;;
     esac
   done
 fi