xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tools: correct tools/tests/depriv/Makefile
@ 2018-09-07  9:16 Juergen Gross
  2018-09-07 16:22 ` Ian Jackson
  2018-09-13 16:20 ` Wei Liu
  0 siblings, 2 replies; 3+ messages in thread
From: Juergen Gross @ 2018-09-07  9:16 UTC (permalink / raw)
  To: xen-devel; +Cc: Juergen Gross, wei.liu2, ian.jackson

tools/tests/depriv/Makefile directly builds the target program from
its C-source. This is problematic when an incremental build is needed
after a header the program is depending on has been modified: in this
case all headers are added into the gcc call and the build will fail.

Correct that by adding a rule for building the program from its .o
file.

Signed-off-by: Juergen Gross <jgross@suse.com>
---
 tools/tests/depriv/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tools/tests/depriv/Makefile b/tools/tests/depriv/Makefile
index 11e07b7c03..3cba28da25 100644
--- a/tools/tests/depriv/Makefile
+++ b/tools/tests/depriv/Makefile
@@ -40,6 +40,9 @@ clean:
 .PHONY: distclean
 distclean: clean
 
+depriv-fd-checker: depriv-fd-checker.o
+	$(CC) $(LDFLAGS) -o $@ $< $(LDLIBS) $(APPEND_LDFLAGS)
+
 install: all
 	$(INSTALL_DIR) $(DESTDIR)$(LIBEXEC_BIN)
 	$(INSTALL_PROG) $(INSTALL_PRIVBIN) $(DESTDIR)$(LIBEXEC_BIN)
-- 
2.16.4


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] tools: correct tools/tests/depriv/Makefile
  2018-09-07  9:16 [PATCH] tools: correct tools/tests/depriv/Makefile Juergen Gross
@ 2018-09-07 16:22 ` Ian Jackson
  2018-09-13 16:20 ` Wei Liu
  1 sibling, 0 replies; 3+ messages in thread
From: Ian Jackson @ 2018-09-07 16:22 UTC (permalink / raw)
  To: Juergen Gross; +Cc: xen-devel, wei.liu2

Juergen Gross writes ("[PATCH] tools: correct tools/tests/depriv/Makefile"):
> tools/tests/depriv/Makefile directly builds the target program from
> its C-source.

Oh.  That was not my intent.

>  This is problematic when an incremental build is needed
> after a header the program is depending on has been modified: in this
> case all headers are added into the gcc call and the build will fail.
> 
> Correct that by adding a rule for building the program from its .o
> file.

That I omitted this was unintentional.  It just worked for me without
it...

Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] tools: correct tools/tests/depriv/Makefile
  2018-09-07  9:16 [PATCH] tools: correct tools/tests/depriv/Makefile Juergen Gross
  2018-09-07 16:22 ` Ian Jackson
@ 2018-09-13 16:20 ` Wei Liu
  1 sibling, 0 replies; 3+ messages in thread
From: Wei Liu @ 2018-09-13 16:20 UTC (permalink / raw)
  To: Juergen Gross; +Cc: xen-devel, ian.jackson, wei.liu2

On Fri, Sep 07, 2018 at 11:16:54AM +0200, Juergen Gross wrote:
> tools/tests/depriv/Makefile directly builds the target program from
> its C-source. This is problematic when an incremental build is needed
> after a header the program is depending on has been modified: in this
> case all headers are added into the gcc call and the build will fail.
> 
> Correct that by adding a rule for building the program from its .o
> file.
> 
> Signed-off-by: Juergen Gross <jgross@suse.com>

Acked-by: Wei Liu <wei.liu2@citrix.com>

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-09-13 16:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-07  9:16 [PATCH] tools: correct tools/tests/depriv/Makefile Juergen Gross
2018-09-07 16:22 ` Ian Jackson
2018-09-13 16:20 ` Wei Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).