X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:to:subject:in-reply-to
	:references; q=dns; s=default; b=g7KTofp72bZ6SrPAiyw7BvuUjRqCkb9
	55HuScemWb9CEb1n70ME/Xjcy3xJu//FElb/pxSNUWU3Oq+Gd9cFRSrle8MZlSr0
	7aJbGrIwEGePatEPLzliTkpJNB/IOuE9p16ANcnEVcDDnKECrKgbVTx9JWhTjjBi
	x3OyBveVkedw=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:to:subject:in-reply-to
	:references; s=default; bh=+eIt7ce9J79yMsCP1QBW8xZTeeQ=; b=Ns676
	lX0dA3fuUC5rKb6cHB6FMvavMzqt++vQ/ql9PCuCMiAWlIYUvvgT8kiMVyumwDTj
	FmsErex1pCuOXOUVmvUd/yp3W9/P2ix31kLAToLI+ROg2DjKLobDun31ucZ1gJMi
	64wlXK/CM4QZuzDh4Nr7LuuHvNFN2TcYzM+xy8=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.4 required=5.0 tests=AWL,BAYES_20,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL autolearn=no version=3.3.2
X-HELO: mail1.asahi-net.or.jp
Message-ID: <20131215140144.2768@binki>
Date: Sun, 15 Dec 2013 14:01:44 +0900
From: wynfield@gmail.com
To: <cygwin@cygwin.com>
Subject: Re: compiling and linking mechanics
In-reply-to: Your message of Sat, 14 Dec 2013 14:40:09 -0500         <20131214194009.GB3015@ednor.casa.cgf.cx>
References: <20131214235105.3564@binki>         <20131214194009.GB3015@ednor.casa.cgf.cx>
X-IsSubscribed: yes


Christopher Faylor wrote:
>> ....
>
> It isn't incredibly difficult to understand:  Some poorly written makefiles
> put a -lib before the object files which rely on them.  That works by
> coincidence in Linux but doesn't work on Windows.  So put the -libraries
> last.
> --

What is the basis for the assertion that placing -lib before object files is an undesirable thing to do?  Knowing why would be educational for all who don't know or think otherwise.  For example placing definitions prior use prevents undefined forward reference problems.  I am not commenting on possible efficiencies or either technique.  Whether by design or fortune, Linux allows developers a less restrictive ordering.   I suppose that the ordering is due for the lack of functionality in the linker that Cygwin uses.

Cheers

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

