From 5e2624a4bd4d787b1d81218d6cf98ccf207a1ece Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 14 Feb 2015 13:31:28 +0100 Subject: set assembler flags, otherwise crt1.o get compiled for wrong float configuration --- toolchain/uclibc-ng/Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'toolchain/uclibc-ng') diff --git a/toolchain/uclibc-ng/Makefile b/toolchain/uclibc-ng/Makefile index 2adc0859e..0ceccc817 100644 --- a/toolchain/uclibc-ng/Makefile +++ b/toolchain/uclibc-ng/Makefile @@ -10,6 +10,24 @@ include ${ADK_TOPDIR}/mk/buildhlp.mk TARGET_CFLAGS:=$(filter-out -flto,$(TARGET_CFLAGS)) +ifeq ($(ADK_TARGET_HARD_FLOAT),y) +ifeq ($(ADK_TARGET_ARCH_ARM),y) +TARGET_CFLAGS+= -Wa,-mfloat-abi=hard +endif +ifeq ($(ADK_TARGET_ARCH_MIPS),y) +TARGET_CFLAGS+= -Wa,-mhard-float +endif +endif + +ifeq ($(ADK_TARGET_SOFT_FLOAT),y) +ifeq ($(ADK_TARGET_ARCH_ARM),y) +TARGET_CFLAGS+= -Wa,-mfloat-abi=soft +endif +ifeq ($(ADK_TARGET_ARCH_MIPS),y) +TARGET_CFLAGS+= -Wa,-msoft-float +endif +endif + # parallel building is broken at the moment #ifeq (${ADK_MAKE_PARALLEL},y) #UCLIBC_MAKEOPTS+= -j${ADK_MAKE_JOBS} -- cgit v1.2.3