bug-hurd
[Top][All Lists]
Advanced

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

[PATCH] Add mach_debug defs rules


From: David Michael
Subject: [PATCH] Add mach_debug defs rules
Date: Mon, 16 Jun 2014 15:08:06 -0400

* Makeconf (mach_debug_defs_names,mach_debug_defs): New variables.
* Makeconf: Add rule to generate local $(mach_debug_defs) files.
* procfs/Makefile: Remove vpath for mach_debug defs.
---

Hi,

The hard-coded /usr/include vpath will break building with sysroot
headers.  Can the mach_debug defs files be handled like the others?

Thanks.

David

 Makeconf        | 4 ++++
 procfs/Makefile | 3 ---
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/Makeconf b/Makeconf
index 5cf995d..32eec13 100644
--- a/Makeconf
+++ b/Makeconf
@@ -576,13 +576,17 @@ vpath %.defs $(top_srcdir)/hurd
 mach_defs_names = bootstrap exc mach mach4 \
        mach_host mach_port mach_timer_reply memory_object \
        memory_object_default notify
+mach_debug_defs_names = mach_debug
 device_defs_names = dev_forward device device_reply device_request
 
 mach_defs = $(addsuffix .defs,$(mach_defs_names))
+mach_debug_defs = $(addsuffix .defs,$(mach_debug_defs_names))
 device_defs = $(addsuffix .defs,$(device_defs_names))
 
 $(mach_defs): %.defs:
        echo '#include <mach/$@>' > $@
+$(mach_debug_defs): %.defs:
+       echo '#include <mach_debug/$@>' > $@
 $(device_defs): %.defs:
        echo '#include <device/$@>' > $@
 
diff --git a/procfs/Makefile b/procfs/Makefile
index 6d7ca48..78f20c4 100644
--- a/procfs/Makefile
+++ b/procfs/Makefile
@@ -28,7 +28,4 @@ OBJS = $(SRCS:.c=.o)
 HURDLIBS = netfs fshelp iohelp ps ports ihash shouldbeinlibc
 OTHERLIBS = -lpthread
 
-# Where to find .defs files.
-vpath %.defs /usr/include/mach_debug
-
 include ../Makeconf
-- 
1.9.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]