From owner-freebsd-current Thu May 9 15:37:28 2002 Delivered-To: freebsd-current@freebsd.org Received: from falcon.prod.itd.earthlink.net (falcon.mail.pas.earthlink.net [207.217.120.74]) by hub.freebsd.org (Postfix) with ESMTP id E4AC937B403; Thu, 9 May 2002 15:37:22 -0700 (PDT) Received: from pool0102.cvx40-bradley.dialup.earthlink.net ([216.244.42.102] helo=mindspring.com) by falcon.prod.itd.earthlink.net with esmtp (Exim 3.33 #2) id 175wXD-0002iS-00; Thu, 09 May 2002 15:37:16 -0700 Message-ID: <3CDAF9F7.B70C8315@mindspring.com> Date: Thu, 09 May 2002 15:36:39 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Mikhail Teterin Cc: questions@FreeBSD.org, current@FreeBSD.org Subject: Re: does the order of .a files matter? References: <200205082044.09459.mi+mx@aldan.algebra.com> <3CD9D669.9175E309@mindspring.com> <200205091752.06823.mi+mx@aldan.algebra.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Mikhail Teterin wrote: > = > The most frustrating thing is, the number of such symbols varies > = > greatly with the order, in which I list the libraries on the command > = > line. Is not the linker supposed to make several runs over the given > = > libraries if needed? > = > = No. It doesn't make several runs. It only does that for single > = object files. > > Is there a reason for it, or this just a not-yet-implemented feature? It > certainly seems like the latter -- why make the user jump through all > the sorting/reordering hoops? Generally, this won't be necessary for properly organized code. The code in question is organized by software layering, right, so all you have to do is link the libraries in order? > = You might also want to consider using -L -l, instead > = of trying to link .a's directly. > > What would this do? Make it all go through the library linking code, instead of the single object archive linking code. a ".a" file treated as an object is not the same as a library. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message