From: Ian Jackson Subject: Re: [PATCH] correct order of linker options to avoid link errors with recent toolchains Date: Fri, 23 Jul 2010 17:57:22 +0100 Message-ID: <19529.51698.960310.538282@mariner.uk.xensource.com> References: <19529.50929.327564.314930@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: Olaf Hering , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org Keir Fraser writes ("Re: [Xen-devel] [PATCH] correct order of linker options to avoid link errors with recent toolchains"): > On 23/07/2010 17:44, "Ian Jackson" wrote: > >> libxenguest.so.$(MAJOR).$(MINOR): LDFLAGS += $(call zlib-options,l) > > > > What is this program "zlib-options" ? I don't have it on my system. > > It's right there in the same Makefile directly above the line you quoted. > Yes, the above line can add -l items to LDFLAGS. Oh, duh. I'm confusing $(call ...) with $(shell ...) so I looked in entirely the wrong place. > Sounds like the right fix would indeed be to define a new > COMPRESSION_LIBS variable and put it at the end of the linker > command line. Yes. Olaf, would you like to provide a patch to do that ? Ian.