From 86e881097c8d48a7d754408d8969dfb4b2f692d0 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 27 Aug 2008 15:02:38 +0100 Subject: tools/xenmon/Makefile: Move LDFLAGS after $< gcc expects libraries needed for object files to be specified after the object. Linking usually does not fail, unless it is optimized (for instance, using -Wl,-as-needed). The related Gentoo bug is 135145 [ https://bugs.gentoo.org/135145 ]. From: Robert Buchholz Signed-off-by: Keir Fraser --- tools/xenmon/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/xenmon') diff --git a/tools/xenmon/Makefile b/tools/xenmon/Makefile index 0b35f451d0..8ad4266567 100644 --- a/tools/xenmon/Makefile +++ b/tools/xenmon/Makefile @@ -42,6 +42,6 @@ clean: %: %.c Makefile - $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< + $(CC) $(CFLAGS) $< $(LDFLAGS) -o $@ xentrace_%: %.c Makefile - $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< + $(CC) $(CFLAGS) $< $(LDFLAGS) -o $@ -- cgit v1.2.3