[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] tools/xenmon/Makefile: Move LDFLAGS after $<



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1219845758 -3600
# Node ID ab8212bd5604f58635e2b8bc6ffec6eddd211cf9
# Parent  7a28400271f7b1c8f4a162ba1352d269389067fa
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 <rbu@xxxxxxxxxx>
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 tools/xenmon/Makefile |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r 7a28400271f7 -r ab8212bd5604 tools/xenmon/Makefile
--- a/tools/xenmon/Makefile     Wed Aug 27 14:57:51 2008 +0100
+++ b/tools/xenmon/Makefile     Wed Aug 27 15:02:38 2008 +0100
@@ -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 $@

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.