summaryrefslogtreecommitdiff
path: root/toolchain/gcc/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-04-15 20:17:29 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-04-15 20:17:29 +0200
commit2ec757233179928bb4d8d514509d88f1b2235783 (patch)
tree5008981dd9f6715376b75e81e58b1acb2c3afd2a /toolchain/gcc/Makefile
parentea1244a1bec5a938e032c0a06389b82305651019 (diff)
fix superh big endian compile for musl
Diffstat (limited to 'toolchain/gcc/Makefile')
-rw-r--r--toolchain/gcc/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile
index eee524ba3..63d0237c3 100644
--- a/toolchain/gcc/Makefile
+++ b/toolchain/gcc/Makefile
@@ -40,6 +40,11 @@ GCC_FINAL_CONFOPTS+= --disable-biarch --disable-multilib
endif
ifeq ($(ADK_LINUX_SH),y)
+ifeq ($(ADK_little),y)
+GCC_CONFOPTS+= --with-endian=little
+else
+GCC_CONFOPTS+= --with-endian=big
+endif
GCC_FINAL_CONFOPTS+= --enable-multilib --with-multilib-list=m4,m4-nofpu
endif