From: Ian Jackson Subject: Re: [PATCH] tools/vtpm: use LDLIBS to pass -lgmp Date: Tue, 3 Apr 2012 14:20:09 +0100 Message-ID: <20346.63753.211063.200875@mariner.uk.xensource.com> References: <6685b67958b0623064c7.1332321259@probook.site> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <6685b67958b0623064c7.1332321259@probook.site> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Olaf Hering Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Olaf Hering writes ("[Xen-devel] [PATCH] tools/vtpm: use LDLIBS to pass -lgmp"): > tools/vtpm: use LDLIBS to pass -lgmp > > Linking tpmd will fail with recent toolchains because -lgmp is passed > via LDFLAGS instead of LDLIBS. With this change -lgpm is placed at the > end of the gcc cmdline and linking tpmd succeeds again. ... > CFLAGS += $(WFLAGS) -g -I.. -I. -O2 -fno-strict-aliasing > +CFLAGS += -I../../../../tools/vtpm_manager/manager > - LDFLAGS += -lgmp > + LDLIBS += -lgmp > > -BINDIR := /usr/sbin/ > +BINDIR := /usr/bin/ Please could you make sure not to include unrelated changes in your patches. That makes the job of the reviewer /much/ harder, because we would have to inspect every hunk of your patches looking for this kind of thing creeping in. This is a matter of trust for us as maintainers. Including an unrelated hunk once can be put down to a mistake. Doing it persistently is a breach of the trust that we as committers need to place in people who submit patches. Ian.