Hi,

on Solaris the configuration of the library yields an ugly:

checking whether linker supports split/non-split linked together... cc1: 
error: '-fsplit-stack' is not supported by this compiler configuration
xgcc: error: conftest1.o: No such file or directory
no

Tested on x86-64/Linux and SPARC/Solaris, OK for the mainline?


2016-10-10  Eric Botcazou  <ebotca...@adacore.com>

        * configure.ac (libgo_cv_c_linker_split_non_split): Redirect compiler
        output to /dev/null.
        * configure: Regenerate.

-- 
Eric Botcazou
Index: configure.ac
===================================================================
--- configure.ac	(revision 240888)
+++ configure.ac	(working copy)
@@ -447,9 +447,9 @@ EOF
 cat > conftest2.c << EOF
 void f() {}
 EOF
-$CC -c -fsplit-stack $CFLAGS $CPPFLAGS conftest1.c
-$CC -c $CFLAGS $CPPFLAGS conftest2.c
-if $CC -o conftest conftest1.$ac_objext conftest2.$ac_objext; then
+$CC -c -fsplit-stack $CFLAGS $CPPFLAGS conftest1.c >/dev/null 2>&1
+$CC -c $CFLAGS $CPPFLAGS conftest2.c > /dev/null 2>&1
+if $CC -o conftest conftest1.$ac_objext conftest2.$ac_objext > /dev/null 2>&1; then
   libgo_cv_c_linker_split_non_split=yes
 else
   libgo_cv_c_linker_split_non_split=no

Reply via email to