diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2015-02-23 20:51:54 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2015-02-23 20:52:34 +0100 |
commit | a977d7f519de4a56904edee0c392d7a1b8648621 (patch) | |
tree | e6fd30cb3b0f9806cd919092a5719863406cd6a8 /toolchain | |
parent | 1167c033d3448453015daef12e05c1466f11d8e7 (diff) |
rework gcc optimization flags
gcc uses for some architectures --with-cpu, with others
--with-arch. Add two different symbols for that.
Diffstat (limited to 'toolchain')
-rw-r--r-- | toolchain/gcc/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile index e1734a8e3..f38ba051a 100644 --- a/toolchain/gcc/Makefile +++ b/toolchain/gcc/Makefile @@ -84,8 +84,12 @@ endif # # architecture specific # -ifneq ($(ADK_TARGET_CPU),) -GCC_CONFOPTS+= --with-cpu=$(ADK_TARGET_CPU) +ifneq ($(ADK_TARGET_GCC_CPU),) +GCC_CONFOPTS+= --with-cpu=$(ADK_TARGET_GCC_CPU) +endif + +ifneq ($(ADK_TARGET_GCC_ARCH),) +GCC_CONFOPTS+= --with-arch=$(ADK_TARGET_GCC_ARCH) endif ifneq ($(ADK_TARGET_FLOAT),) |