From xemacs-m  Thu Jun 12 22:23:07 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 WAA26001
	for <xemacs-beta@xemacs.org>; Thu, 12 Jun 1997 22:23:06 -0500 (CDT)
Received: from Eng.Sun.COM ([129.146.1.25]) by mercury.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id UAA19066; Thu, 12 Jun 1997 20:43:03 -0700
Received: from kindra.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3)
	id UAA03963; Thu, 12 Jun 1997 20:21:26 -0700
Received: from xemacs.eng.sun.com by kindra.eng.sun.com (SMI-8.6/SMI-SVR4)
	id UAA04539; Thu, 12 Jun 1997 20:21:22 -0700
Received: by xemacs.eng.sun.com (SMI-8.6/SMI-SVR4)
	id UAA21363; Thu, 12 Jun 1997 20:21:23 -0700
Date: Thu, 12 Jun 1997 20:21:23 -0700
Message-Id: <199706130321.UAA21363@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: Andrew J Cosgriff <Andrew.Cosgriff@cc.monash.edu.au>
Cc: xemacs-beta@xemacs.org
Subject: Re: 20.3-b5 ok on alpha-dec-osf4.0
In-Reply-To: <rui67vj2p9f.fsf@goaway.cc.monash.edu.au>
References: <ruiwwo2gi6z.fsf@goaway.cc.monash.edu.au>
	<199706120037.RAA19126@xemacs.eng.sun.com>
	<rui67vj2p9f.fsf@goaway.cc.monash.edu.au>
X-Mailer: VM 6.32 under 20.3 "Zagreb" XEmacs Lucid (beta5)
Reply-To: Martin Buchholz <mrb@Eng.Sun.COM>

>>>>> "ajc" == Andrew J Cosgriff <Andrew> writes:

ajc> ld -shared -o libpng.so.0.90 png.o pngrcb.o pngrutil.o pngtrans.o
ajc> pngwutil.o pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o
ajc> pngwtran.o pngmem.o pngerror.o pngpread.o -lc -lm -L/usr/local/lib -lz

Thanks for clearing that up.  One lesson is that linking in a standard 
way causes fewer problems later.  It makes sense that ld would require 
all the link dependencies to be specified on the command line, even if 
they are not really used until run time.  The behavior of the linker
that you observe is what should happen.  There are other things about
Unix linkers that really are broken, like why doesn't "first def win"?

Martin

