Working kaffe on SGI Irix6.3! (fwd)

Lee Iverson leei at ai.sri.com
Tue Aug 25 15:34:09 PDT 1998


Godmar's just checked in a change I proposed whereby if gcc is found
it is used for the shared library linker (see configure.in in the
current CVS sources).

Something like this is definitely needed on SGI Irix 6.x where the ABI
default of ld and gcc are different.  Moreover, gcc may generate
references to libgcc.a which should be closed against a shared library
on creation.

But as Godmar pointed out to me, doing this will override a user's
selection of LD from the environment.  Anyone who's faced this in
other project's got a better solution.

The code in question (configure.in):

dnl =========================================================================
dnl Lee Iverson  <leei at Canada.AI.SRI.COM> says:
dnl
dnl For building shared libraries.  'gcc -shared' may pass extra argumets
dnl to ld that are necessary to link a shared library.  For example, on
dnl the SGI machines we need specify 'ld -n32' and also include libgcc.a
dnl in the shared library link in order to ensure that it is properly
dnl closed.
dnl -------------------------------------------------------------------------
if test "$GCC" = "yes"; then LD="$CC"; fi

-------------------------------------------------------------------------------
Lee Iverson     		SRI International
leei at ai.sri.com			333 Ravenswood Ave., Menlo Park CA 94025
http://www.ai.sri.com/~leei/	(650) 859-3307



More information about the kaffe mailing list