cvs-errnos.d
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Sun, 3 Jul 2016 19:59:34 +0000 (19:59 +0000)
committerAurelien Jarno <aurel32@debian.org>
Sun, 3 Jul 2016 19:59:34 +0000 (19:59 +0000)
commit fe43d0f464fa97f0cb4c08f3303f6a7aadd638f9
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Mar 20 16:44:44 2016 +0100

    hurd: Break errnos.d / libc-modules.h dependency loop

    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,

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name cvs-errnos.d.diff

sysdeps/mach/hurd/Makefile

index c7763088ea12f425e1cadf80817195d34ca59575..dc4b257af605ff3e6f31be8be6884458c2fd3ca9 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 $@