From: Ian Jackson Subject: Re: [PATCH 1/3] autoconf/python_dev: pass include and library dir based on prefix Date: Mon, 14 May 2012 15:08:03 +0100 Message-ID: <20401.4547.64923.505180@mariner.uk.xensource.com> References: <1336745632-28158-1-git-send-email-roger.pau@citrix.com> <1336745632-28158-2-git-send-email-roger.pau@citrix.com> <20397.16177.826755.879002@mariner.uk.xensource.com> <4FB0D5A3.9000304@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4FB0D5A3.9000304@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Roger Pau Monne Cc: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org Roger Pau Monne writes ("Re: [Xen-devel] [PATCH 1/3] autoconf/python_dev: pass include and library dir based on prefix"): > According to man ld (from Debian): > > "All -L options apply to all -l options, regardless of the order in > which the options appear." I think this is a special feature of GNU binutils. (And a surprising one to me at least!) > So it should be ok to specify -L after -l. No. I asked a friend who had access to (for example) the Solaris ld manpage and got this quote: -L path [...] This option is useful only if the option precedes the -l options to which the -L option applies. Ian.