diff mbox

[libgo] Silence compiler error message

Message ID 42229801.KuuiXnj593@polaris
State New
Headers show

Commit Message

Eric Botcazou Oct. 10, 2016, 7:44 p.m. UTC
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  <ebotcazou@adacore.com>

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

Comments

Ian Lance Taylor Oct. 11, 2016, 1:13 p.m. UTC | #1
On Mon, Oct 10, 2016 at 12:44 PM, Eric Botcazou <ebotcazou@adacore.com> wrote:
>
> 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  <ebotcazou@adacore.com>
>
>         * configure.ac (libgo_cv_c_linker_split_non_split): Redirect compiler
>         output to /dev/null.
>         * configure: Regenerate.

Thanks.  Committed.

Ian
diff mbox

Patch

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