package/gcc: fix libgcc build for xtensa
authorMax Filippov <jcmvbkbc@gmail.com>
Fri, 24 Jul 2015 09:30:31 +0000 (12:30 +0300)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 24 Jul 2015 09:32:39 +0000 (11:32 +0200)
commitc44cf2cc97df1729577263d2b0cb5263e8cdc4c1
tree1c0f918496406c8196c9c1086f455c77419e0e6f
parent89d21ce29b5be996d130f7944095918b3e8dd613
package/gcc: fix libgcc build for xtensa

xtensa libgcc can't be built with -mtext-section-literals flag, now
coming from TARGET_CFLAGS, because it needs to emit literals to
.init/.fini sections, which is not currently supported.

Filter -mtext-section-literals flag out of GCC_COMMON_TARGET_CFLAGS.

Suggested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/gcc/gcc.mk