From owner-freebsd-current Thu May 9 3:28:17 2002 Delivered-To: freebsd-current@freebsd.org Received: from arg1.demon.co.uk (arg1.demon.co.uk [62.49.12.213]) by hub.freebsd.org (Postfix) with ESMTP id D96EB37B407 for ; Thu, 9 May 2002 03:28:14 -0700 (PDT) Received: by arg1.demon.co.uk (Postfix, from userid 1002) id 06F2D9B06; Thu, 9 May 2002 11:28:09 +0100 (BST) Received: from localhost (localhost [127.0.0.1]) by arg1.demon.co.uk (Postfix) with ESMTP id F2B2E5D0C; Thu, 9 May 2002 11:28:09 +0100 (BST) Date: Thu, 9 May 2002 11:28:09 +0100 (BST) From: Andrew Gordon X-X-Sender: To: Ian Cc: freebsd-current Subject: Re: does the order of .a files matter? In-Reply-To: Message-ID: <20020509111336.V9334-100000@server.arg.sj.co.uk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Wed, 8 May 2002, Ian wrote: > > > > I'm trying to port a huge application to FreeBSD. The app's build > > process creates over a hundred of static libraries (.a) and then tries > > to link them (and a few object files) into the executable. The process > > seems to work fine on the existing platforms (a number of Unixes and > > NT), but on FreeBSD I keep getting unresolved symbols. > > > > There are a few linker command line options that may help you through this > kind of problem. (IMO, there should be an option for just making multiple > passes over the libraries, but it appears there isn't one.) There is: --start-group somelib.a otherlib.a morelibs.a --end-group To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message