Patchwork top level configure patch committed: Disable libgo on some systems

login
register
mail settings
Submitter Ian Taylor
Date Feb. 5, 2013, 10:36 p.m.
Message ID <mcrobfy8k2d.fsf@google.com>
Download mbox | patch
Permalink /patch/218455/
State New
Headers show

Comments

Ian Taylor - Feb. 5, 2013, 10:36 p.m.
This patch to the top level configure script avoids building libgo on
some systems where it is known to not work.  Bootstrapped on
x86_64-unknown-linux-gnu, where it does work.  Committed to mainline.
This is PR 55969.

Ian


2013-02-05  Ian Lance Taylor  <iant@google.com>

	PR go/55969
	* configure.ac: Disable libgo on some systems where it does not
	work.

Patch

Index: configure.ac
===================================================================
--- configure.ac	(revision 195436)
+++ configure.ac	(working copy)
@@ -752,6 +752,23 @@  case "${target}" in
     ;; 
 esac
 
+# Disable libgo for some systems where it is known to not work.
+# For testing, you can easily override this with --enable-libgo.
+if test x$enable_libgo = x; then
+    case "${target}" in
+    *-*-darwin*)
+	# PR 46986
+	noconfigdirs="$noconfigdirs target-libgo"
+	;;
+    *-*-cygwin* | *-*-mingw*)
+	noconfigdirs="$noconfigdirs target-libgo"
+	;;
+    *-*-aix*)
+	noconfigdirs="$noconfigdirs target-libgo"
+	;;
+    esac
+fi
+
 # Default libgloss CPU subdirectory.
 libgloss_dir="$target_cpu"