Skip to content

Commit 51ab11f

Browse files
author
Ian Lance Taylor
committed
PR go/55969
* configure.ac: Disable libgo on some systems where it does not work. * configure: Rebuild.
1 parent 79a97aa commit 51ab11f

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed

ChangeLog

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2013-02-05 Ian Lance Taylor <[email protected]>
2+
3+
PR go/55969
4+
* configure.ac: Disable libgo on some systems where it does not
5+
work.
6+
* configure: Rebuild.
7+
18
2013-02-05 Alan Modra <[email protected]>
29

310
* configure: Regenerate after syncing config/.

configure

+17
Original file line numberDiff line numberDiff line change
@@ -3413,6 +3413,23 @@ case "${target}" in
34133413
;;
34143414
esac
34153415

3416+
# Disable libgo for some systems where it is known to not work.
3417+
# For testing, you can easily override this with --enable-libgo.
3418+
if test x$enable_libgo = x; then
3419+
case "${target}" in
3420+
*-*-darwin*)
3421+
# PR 46986
3422+
noconfigdirs="$noconfigdirs target-libgo"
3423+
;;
3424+
*-*-cygwin* | *-*-mingw*)
3425+
noconfigdirs="$noconfigdirs target-libgo"
3426+
;;
3427+
*-*-aix*)
3428+
noconfigdirs="$noconfigdirs target-libgo"
3429+
;;
3430+
esac
3431+
fi
3432+
34163433
# Default libgloss CPU subdirectory.
34173434
libgloss_dir="$target_cpu"
34183435

configure.ac

+17
Original file line numberDiff line numberDiff line change
@@ -752,6 +752,23 @@ case "${target}" in
752752
;;
753753
esac
754754

755+
# Disable libgo for some systems where it is known to not work.
756+
# For testing, you can easily override this with --enable-libgo.
757+
if test x$enable_libgo = x; then
758+
case "${target}" in
759+
*-*-darwin*)
760+
# PR 46986
761+
noconfigdirs="$noconfigdirs target-libgo"
762+
;;
763+
*-*-cygwin* | *-*-mingw*)
764+
noconfigdirs="$noconfigdirs target-libgo"
765+
;;
766+
*-*-aix*)
767+
noconfigdirs="$noconfigdirs target-libgo"
768+
;;
769+
esac
770+
fi
771+
755772
# Default libgloss CPU subdirectory.
756773
libgloss_dir="$target_cpu"
757774

0 commit comments

Comments
 (0)