]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix rules generating headers in hurd/ and mach/
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 6 Sep 2015 19:07:00 +0000 (21:07 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 6 Sep 2015 19:07:00 +0000 (21:07 +0200)
when initial make call has subdir= explicitly set.

* sysdeps/mach/Makefile ($(patsubst
mach%,m\%h%,$(mach-before-compile))): Force subdir to mach when
calling $(MAKE).
* sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
io fs process)): Force subdir to hurd when calling $(MAKE).
($(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c): Force
subdir to mach when calling $(MAKE).

ChangeLog
sysdeps/mach/Makefile
sysdeps/mach/hurd/Makefile

index f726795da6e04783a98b477412c06962e7983e36..32f320199a5e99e705f384d91411f7ffbae666f2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,17 @@
-2015-09-06  Manolis Ragkousis <manolis837@gmail.com>
+2015-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
+
+       Fix rules generating headers in hurd/ and mach/ when initial make call
+       has subdir= explicitly set.
+
+       * sysdeps/mach/Makefile ($(patsubst
+       mach%,m\%h%,$(mach-before-compile))): Force subdir to mach when
+       calling $(MAKE).
+       * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
+       io fs process)): Force subdir to hurd when calling $(MAKE).
+       ($(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c): Force
+       subdir to mach when calling $(MAKE).
+
+2015-09-06  Manolis Ragkousis  <manolis837@gmail.com>
 
        Check sysheaders when looking for Mach and Hurd headers
 
index b47cdc6b33a346d53b5a71b20232a9054e8e9e44..3323e818eb4bd44bf0f8dbf2af65b959a662ef87 100644 (file)
@@ -43,7 +43,7 @@ ifneq (mach,$(subdir))
 # This patsubst generates patterns like `m%h-shortcuts.h', which are damn
 # likely to match just the corresponding particular file we want.
 $(patsubst mach%,m\%h%,$(mach-before-compile)): # Run only if doesn't exist.
-       $(MAKE) -C $(..)mach mach-before-compile no_deps=t generating=t
+       $(MAKE) -C $(..)mach subdir=mach mach-before-compile no_deps=t generating=t
 
 before-compile += $(mach-before-compile)
 endif
index b528815e0ce69d9be9404f54cf81759f26b4a723..244ac4ba302e2a2c0243bff10c24f7eb71479eb2 100644 (file)
@@ -48,13 +48,13 @@ hurd-objpfx = $(common-objpfx)hurd/
 before-compile += $(patsubst %,$(hurd-objpfx)hurd/%.h,auth io fs process)
 $(patsubst %,$(hurd-objpfx)hurd/%.%,auth io fs process): \
   $(common-objpfx)mach/mach-shortcuts.h
-       $(MAKE) -C $(..)hurd before-compile no_deps=t
+       $(MAKE) -C $(..)hurd subdir=hurd before-compile no_deps=t
 endif
 
 # Hurd profil.c includes this file, so give a rule to make it.
 ifeq ($(subdir),gmon)
 $(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c:
-       $(MAKE) -C $(..)mach before-compile no_deps=t
+       $(MAKE) -C $(..)mach subdir=mach before-compile no_deps=t
 endif
 
 \f