musl: fix build on sh3
musl fails to build when compiled with gcc on sh3 (GCC target/#67260). Work it around. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu> SVN-Revision: 47012
This commit is contained in:
parent
17ae95bb20
commit
8f57c55993
1 changed files with 6 additions and 0 deletions
|
@ -23,6 +23,12 @@ HOST_BUILD_DIR:=$(BUILD_DIR_TOOLCHAIN)/$(PKG_NAME)-$(PKG_VERSION)
|
|||
include $(INCLUDE_DIR)/toolchain-build.mk
|
||||
include $(INCLUDE_DIR)/hardening.mk
|
||||
|
||||
# Please see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67260
|
||||
ifeq ($(CONFIG_sh3),y)
|
||||
TARGET_CFLAGS+= \
|
||||
-fno-optimize-sibling-calls
|
||||
endif
|
||||
|
||||
MUSL_CONFIGURE:= \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
CFLAGS="$(TARGET_CFLAGS)" \
|
||||
|
|
Loading…
Reference in a new issue