This patch adds an option in GCC config to compile Objective-C language support in the toolchain. It is disabled by default, so it is not intrusive.
@@ -74,3 +74,10 @@ config BR2_INSTALL_LIBGCJ
depends on BR2_INSTALL_LIBSTDCPP
help
Build/install java compiler and libgcj?
+
+config BR2_INSTALL_OBJC
+ bool "Build/install Objective-C compiler and runtime?"
+ default n
+ help
+ Build/install Objective-C compiler and runtime?
@@ -49,6 +49,10 @@ TARGET_LANGUAGES:=c
endif
+ifeq ($(BR2_INSTALL_OBJC),y)
+TARGET_LANGUAGES:=$(TARGET_LANGUAGES),objc
+endif
#############################################################
#
# build the first pass gcc compiler