diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2015-02-14 13:31:28 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2015-02-14 13:31:28 +0100 |
commit | 5e2624a4bd4d787b1d81218d6cf98ccf207a1ece (patch) | |
tree | 4ca123833d0fe01dc52f4cbb7199c3d799700609 /toolchain/uclibc-ng/Makefile | |
parent | 4345869df894faae79f68d4a835e2e825a4778f7 (diff) |
set assembler flags, otherwise crt1.o get compiled for wrong float configuration
Diffstat (limited to 'toolchain/uclibc-ng/Makefile')
-rw-r--r-- | toolchain/uclibc-ng/Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
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} |