summaryrefslogtreecommitdiff
path: root/toolchain/gcc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'toolchain/gcc/Makefile')
-rw-r--r--toolchain/gcc/Makefile15
1 files changed, 11 insertions, 4 deletions
diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile
index 1fe6294ae..2b620bf07 100644
--- a/toolchain/gcc/Makefile
+++ b/toolchain/gcc/Makefile
@@ -189,11 +189,18 @@ ifeq (${ADK_MAKE_PARALLEL},y)
GCC_MAKEOPTS+= -j${ADK_MAKE_JOBS}
endif
-ifeq ($(ADK_TARGET_WITHOUT_CXX),y)
-LANGUAGES:=c
-else
-LANGUAGES:=c,c++
+USE_LANG:=c
+ifeq ($(ADK_TOOLCHAIN_WITH_CXX),y)
+USE_LANG+=c++
+endif
+ifeq ($(ADK_TOOLCHAIN_WITH_OBJC),y)
+USE_LANG+=objc
endif
+ifeq ($(ADK_TOOLCHAIN_WITH_FORTRAN),y)
+USE_LANG+=fortran
+endif
+
+LANGUAGES=$(shell echo ${USE_LANG} |tr ' ' ',')
include ${ADK_TOPDIR}/mk/buildhlp.mk