From xemacs-m  Thu Sep 25 14:29:24 1997
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by xemacs.org (8.8.5/8.8.5) with SMTP id OAA23057
	for <xemacs-beta@xemacs.org>; Thu, 25 Sep 1997 14:29:21 -0500 (CDT)
Received: from Eng.Sun.COM ([129.146.1.25]) by mercury.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id MAA05867; Thu, 25 Sep 1997 12:28:54 -0700
Received: from kindra.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3)
	id MAA25977; Thu, 25 Sep 1997 12:28:51 -0700
Received: from xemacs.eng.sun.com by kindra.eng.sun.com (SMI-8.6/SMI-SVR4)
	id MAA14986; Thu, 25 Sep 1997 12:28:51 -0700
Received: by xemacs.eng.sun.com (SMI-8.6/SMI-SVR4)
	id MAA11667; Thu, 25 Sep 1997 12:28:49 -0700
Date: Thu, 25 Sep 1997 12:28:49 -0700
Message-Id: <199709251928.MAA11667@xemacs.eng.sun.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
From: Martin Buchholz <mrb@Eng.Sun.COM>
To: Jason McLaren <mclaren@math.mcgill.ca>
Cc: xemacs-beta@xemacs.org
Subject: configure failure - 20.3b23 - mips-sgi-irix5.3
In-Reply-To: <yywen6d9zqa.fsf@scylla.math.mcgill.ca>
References: <yywen6d9zqa.fsf@scylla.math.mcgill.ca>
X-Mailer: VM 6.33 under 20.3 "Vienna" XEmacs  Lucid (beta14)
Reply-To: Martin Buchholz <mrb@Eng.Sun.COM>

>>>>> "Jason" == Jason McLaren <mclaren@math.mcgill.ca> writes:

Jason> configure:3612: checking size of short
Jason> configure:3626: gcc -o conftest -g -O2 -Wall -Wno-switch           -Xlinker -G -Xlinker 0   conftest.c          1>&5
Jason> cc1: warning: `-g' not supported by this configuration of GCC
Jason> collect2: ld returned 1 exit status
Jason> /usr/bin/../lib/ld:
Jason> Shared and non-shared are incompatible, flags must precede all object files
Jason> /usr/bin/../lib/ld: Usage: /usr/bin/../lib/ld [options] file [...]

So where did the  

  -Xlinker -G -Xlinker 0 

come from?

Look at the configure command line and the environment variables

The configure build process also used the following environment variables:
CC        C compiler to use (but configure flags take precedence)
CPP       C preprocessor to use (such as /usr/ccs/lib/cpp or cc -E)
CFLAGS    C compiler compilation flags (such as -O)
CPPFLAGS  Additional compilation flags (such as -I/foo) used only by the preprocessor
LDFLAGS   Additional linker flags (such as -L/foo)
LIBS      Additional libraries (such as -lfoo)

Martin

