]> sourceware.org Git - glibc.git/commitdiff
hurd: Break errnos.d / libc-modules.h dependency loop
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 20 Mar 2016 15:44:44 +0000 (16:44 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 20 Mar 2016 15:44:44 +0000 (16:44 +0100)
Generating errnos.d does not actually need libc-modules.h.

* sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Strip
"-include $(common-objpfx)libc-modules.h" from CPPFLAGS, and do not
depend on libc-modules.h,

ChangeLog
sysdeps/mach/hurd/Makefile

index ad370671398d66bda166f294ee7d14e2185d2cc0..ce46c6b496f8f0f17f0506142411fa17a2db2c74 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2016-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
+
+       * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Strip
+       "-include $(common-objpfx)libc-modules.h" from CPPFLAGS, and do not
+       depend on libc-modules.h,
+
 2016-03-17  Joseph Myers  <joseph@codesourcery.com>
 
        * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EVENTFD2):
index 3845c57c145fc46fa261048a0b85e135ea3f0470..cfaeed30454421f7081d8c71f75b1d0b661b2a48 100644 (file)
@@ -79,9 +79,11 @@ endef
 # the headers we want to search for Mach error codes, listed above (and
 # incidentally, all other headers those include).
 -include $(common-objpfx)errnos.d
-$(common-objpfx)errnos.d: $(mach-errnos-deps) libc-modules.h
+$(common-objpfx)errnos.d: $(mach-errnos-deps)
        $(mach-errno-h) | \
-       $(CC) $(CFLAGS) $(CPPFLAGS) -M -x c - | \
+       $(CC) $(CFLAGS) \
+           $(subst -include $(common-objpfx)libc-modules.h,,$(CPPFLAGS)) \
+           -M -x c - | \
        sed $(sed-remove-objpfx) -e 's,- *:,mach-errnos-deps :=,' \
            -e 's, \.\./, $(..),g' > $@t
        mv -f $@t $@
This page took 0.110117 seconds and 5 git commands to generate.