git-divdi
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Sun, 14 Jan 2018 10:24:48 +0000 (10:24 +0000)
committerAurelien Jarno <aurel32@debian.org>
Sun, 14 Jan 2018 10:24:48 +0000 (10:24 +0000)
commit f85958a74d9e26e7e43a5d3e65d4d77ed47f55ea
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Sep 3 04:58:00 2017 +0200

    hurd: Fix libc link

    This follows db3d848 ('Build divdi3 only for architecture that required
    it').

            * sysdeps/mach/hurd/i386/Makefile
            [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
            [$(subdir) = csu] (sysdep-only-routines): Likewise.
            [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-divdi.diff

sysdeps/mach/hurd/i386/Makefile

index 9e1a978b6f9d6f3026c43eab2aba36cd075356c8..09fedee5bc07e8c02c94b32846b760a96010adb1 100644 (file)
@@ -11,3 +11,11 @@ ifeq ($(subdir),stdlib)
 gen-as-const-headers += ucontext_i.sym
 sysdep_routines += makecontext-helper
 endif
+
+ifeq ($(subdir),csu)
+ifeq (yes,$(build-shared))
+sysdep_routines += divdi3
+shared-only-routines += divdi3
+CPPFLAGS-divdi3.c = -Din_divdi3_c
+endif
+endif