mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] [OSELAS.Toolchain] cross-gcc: add Objective-C option
@ 2020-01-10 10:12 Ladislav Michl
  0 siblings, 0 replies; only message in thread
From: Ladislav Michl @ 2020-01-10 10:12 UTC (permalink / raw)
  To: ptxdist

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
---
 Hi,

 Objective-C is needed to cross compile GNUstep (GNUstep is needed
 to free myself from Qt and GTK ;-))

 rules/cross-gcc.in   | 14 ++++++++++++++
 rules/cross-gcc.make |  2 ++
 2 files changed, 16 insertions(+)

diff --git a/rules/cross-gcc.in b/rules/cross-gcc.in
index 5b2f356..76f82c7 100644
--- a/rules/cross-gcc.in
+++ b/rules/cross-gcc.in
@@ -131,6 +131,20 @@ config CROSS_GCC_LANG_JAVA
 	  As GCC is a compiler collection, it can support various languages.
 	  Select this for Java support
 
+config CROSS_GCC_LANG_OBJC
+	bool
+	prompt "Objective-C"
+	help
+	  As GCC is a compiler collection, it can support various languages.
+	  Select this for Objective-C support
+
+config CROSS_GCC_LANG_OBJCXX
+	bool
+	prompt "Objective-C++"
+	help
+	  As GCC is a compiler collection, it can support various languages.
+	  Select this for Objective-C++ support
+
 source "workspace/rules/cross-ecj.in"
 
 endif
diff --git a/rules/cross-gcc.make b/rules/cross-gcc.make
index 8dc77fd..d692476 100644
--- a/rules/cross-gcc.make
+++ b/rules/cross-gcc.make
@@ -125,6 +125,8 @@ CROSS_GCC_LANG-$(PTXCONF_CROSS_GCC_LANG_C)		+= c
 CROSS_GCC_LANG-$(PTXCONF_CROSS_GCC_LANG_CXX)		+= c++
 CROSS_GCC_LANG-$(PTXCONF_CROSS_GCC_LANG_JAVA)		+= java
 CROSS_GCC_LANG-$(PTXCONF_CROSS_GCC_LANG_FORTRAN)	+= fortran
+CROSS_GCC_LANG-$(PTXCONF_CROSS_GCC_LANG_OBJC)		+= objc
+CROSS_GCC_LANG-$(PTXCONF_CROSS_GCC_LANG_OBJCXX)		+= obj-c++
 
 CROSS_GCC_CONF_TOOL	:= autoconf
 CROSS_GCC_CONF_OPT	:= \
-- 
2.25.0.rc1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-01-10 10:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-10 10:12 [ptxdist] [PATCH] [OSELAS.Toolchain] cross-gcc: add Objective-C option Ladislav Michl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox