tools/xenmon/Makefile: Move LDFLAGS after $<
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 27 Aug 2008 14:02:38 +0000 (15:02 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 27 Aug 2008 14:02:38 +0000 (15:02 +0100)
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 <rbu@gentoo.org>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
tools/xenmon/Makefile

index 0b35f451d0f834ebdeab1127e18295fbe1d6dae2..8ad42665673653d43754f8e758b21f7ac94eb03a 100644 (file)
@@ -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 $@