diff --git a/base/gcc/gcc.conf b/base/gcc/gcc.conf index da4509295..02acf186e 100644 --- a/base/gcc/gcc.conf +++ b/base/gcc/gcc.conf @@ -2,7 +2,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../gcc/gcc.conf -# Copyright (C) 2006 - 2009 The OpenSDE Project +# Copyright (C) 2006 - 2010 The OpenSDE Project # Copyright (C) 2004 - 2006 The T2 SDE Project # # More information can be found in the files COPYING and README. @@ -13,6 +13,18 @@ # GNU General Public License can be found in the file COPYING. # --- SDE-COPYRIGHT-NOTE-END --- +# 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 + 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-}" ;; + esac + done +fi + # create and set up cmd_wrapper for xgcc function setup_xgcc_wrapper() { mkdir gcc ; pushd gcc