From 6e5e45bd7aa1f9e765f32c3a0c6c9db974cd9876 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Mon, 14 Nov 2011 10:30:43 +0100 Subject: [PATCH] gcc: added possibility to enable/disable the go language backend support --- base/gcc/config-550.in | 3 ++- base/gcc/gcc.conf | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/base/gcc/config-550.in b/base/gcc/config-550.in index fad0ea9ba..74cbc77af 100644 --- a/base/gcc/config-550.in +++ b/base/gcc/config-550.in @@ -2,7 +2,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../gcc/config-550.in -# Copyright (C) 2006 - 2008 The OpenSDE Project +# Copyright (C) 2006 - 2011 The OpenSDE Project # Copyright (C) 2004 - 2006 The T2 SDE Project # Copyright (C) 1998 - 2003 Clifford Wolf # @@ -86,6 +86,7 @@ if pkgcheck "gcc" X; then bool 'Build the JAVA compiler' SDECFG_PKG_GCC_JAVA 1 fi bool 'Build the F77 compiler' SDECFG_PKG_GCC_F77 1 + bool 'Build the GO compiler' SDECFG_PKG_GCC_GO 1 bool 'Build the OBJC compiler' SDECFG_PKG_GCC_OBJC 1 comment ' ' bool 'Build version specific runtime libraries' \ diff --git a/base/gcc/gcc.conf b/base/gcc/gcc.conf index a6bf4cf77..a8e1bd410 100644 --- a/base/gcc/gcc.conf +++ b/base/gcc/gcc.conf @@ -177,6 +177,12 @@ else var_append confopt " " "--disable-libgfortran" fi + if [ "$SDECFG_PKG_GCC_GO" != 1 ] ; then + var_append confopt " " "--disable-libgo" + else + var_append languages ',' 'go' + fi + # Set enable-shared if [ "$diet_dynamic_static" == "static" ] ; then var_append confopt " " "--disable-shared"