Skip to contentSkip to conversation

tools/xenalyze: append argp LD flags if needed

PATCH In review Roger Pau Monne 3 participants 4 messages Aug 18, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/xenalyze: append argp LD flags if needed

This is a side-effect of commit c36e1c, which currently prevents compiling xenalyze with libcs that don't have argp built-in.

---
Cc: George Dunlap <[email protected]>
Cc: Wei Liu <[email protected]>
Cc: Ian Jackson <[email protected]>

---
 tools/xentrace/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/xentrace/Makefile +1 -1
index a85ed33..c8c36a8 100644
@@ -50,7 +50,7 @@ xentrace_setsize: setsize.o
 	$(CC) $(LDFLAGS) -o $@ $< $(LDLIBS) $(APPEND_LDFLAGS)
 
 xenalyze: xenalyze.o mread.o
-	$(CC) $(LDFLAGS) -o $@ $^ $(APPEND_LDFLAGS)
+	$(CC) $(LDFLAGS) -o $@ $^ $(ARGP_LDFLAGS) $(APPEND_LDFLAGS)
 
 -include $(DEPS)
 
Signature · 7 lines
2.7.4 (Apple Git-66)


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Roger Pau Monne

This is a side-effect of commit c36e1c, which currently prevents compiling xenalyze with libcs that don't have argp built-in.

I don't have the expertise to know if this is the Right Way to solve this problem; but regarding the principle:

Quoted 14 lines

---
Cc: George Dunlap <[email protected]>
Cc: Wei Liu <[email protected]>
Cc: Ian Jackson <[email protected]>

---
 tools/xentrace/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/xentrace/Makefile +0 -0
index a85ed33..c8c36a8 100644

tools/xentrace/Makefile xentrace_setsize: setsize.o · line 56

Quoted 8 lines
tools/xentrace/Makefile +1 -1
@@ -50,7 +50,7 @@ xentrace_setsize: setsize.o
 	$(CC) $(LDFLAGS) -o $@ $< $(LDLIBS) $(APPEND_LDFLAGS)
 
 xenalyze: xenalyze.o mread.o
-	$(CC) $(LDFLAGS) -o $@ $^ $(APPEND_LDFLAGS)
+	$(CC) $(LDFLAGS) -o $@ $^ $(ARGP_LDFLAGS) $(APPEND_LDFLAGS)
 
 -include $(DEPS)
 

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

Acked-by on v1 1/1
#2 lore raw
In reply to Roger Pau Monne
Quoted 4 lines · Roger Pau Monne

This is a side-effect of commit c36e1c, which currently prevents compiling xenalyze with libcs that don't have argp built-in.

Quoted 24 lines

---
Cc: George Dunlap <[email protected]>
Cc: Wei Liu <[email protected]>
Cc: Ian Jackson <[email protected]>

---
 tools/xentrace/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/xentrace/Makefile +1 -1
index a85ed33..c8c36a8 100644
@@ -50,7 +50,7 @@ xentrace_setsize: setsize.o
 	$(CC) $(LDFLAGS) -o $@ $< $(LDLIBS) $(APPEND_LDFLAGS)
 
 xenalyze: xenalyze.o mread.o
-	$(CC) $(LDFLAGS) -o $@ $^ $(APPEND_LDFLAGS)
+	$(CC) $(LDFLAGS) -o $@ $^ $(ARGP_LDFLAGS) $(APPEND_LDFLAGS)
 
 -include $(DEPS)
 
Signature · 1 line
2.7.4 (Apple Git-66)

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel