diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-05-31 13:00:46 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-05-31 13:00:46 +0000 |
commit | 8b7d0d34dc39be95d79ef94418054768b0e68592 (patch) | |
tree | 6c172e9dcc27dea42dc17b4098afed037596a28b | |
parent | 6dcc4bbda03bcad8fe2ec1c9adcb434013a2dc70 (diff) | |
download | master-187ad058-8b7d0d34dc39be95d79ef94418054768b0e68592.tar.gz master-187ad058-8b7d0d34dc39be95d79ef94418054768b0e68592.tar.bz2 master-187ad058-8b7d0d34dc39be95d79ef94418054768b0e68592.zip |
eglibc: add support for other mips64 ABI variants as well
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40890 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | toolchain/eglibc/common.mk | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/toolchain/eglibc/common.mk b/toolchain/eglibc/common.mk index 81f3df5018..9ef92c6667 100644 --- a/toolchain/eglibc/common.mk +++ b/toolchain/eglibc/common.mk @@ -35,7 +35,15 @@ HOST_STAMP_BUILT:=$(CUR_BUILD_DIR)/.built HOST_STAMP_INSTALLED:=$(TOOLCHAIN_DIR)/stamp/.eglibc_$(VARIANT)_installed ifeq ($(ARCH),mips64) - TARGET_CFLAGS += -mabi=64 + ifdef CONFIG_MIPS64_ABI_N64 + TARGET_CFLAGS += -mabi=64 + endif + ifdef CONFIG_MIPS64_ABI_N32 + TARGET_CFLAGS += -mabi=n32 + endif + ifdef CONFIG_MIPS64_ABI_O32 + TARGET_CFLAGS += -mabi=32 + endif endif EGLIBC_CONFIGURE:= \ |