diff mbox

[hurd,commited] hurd: Fix libc link

Message ID 20170903030009.10106-1-samuel.thibault@ens-lyon.org
State Committed
Headers show

Commit Message

Samuel Thibault Sept. 3, 2017, 3 a.m. UTC
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.
---
 ChangeLog                       | 4 ++++
 sysdeps/mach/hurd/i386/Makefile | 8 ++++++++
 2 files changed, 12 insertions(+)
diff mbox

Patch

diff --git a/ChangeLog b/ChangeLog
index 858848c9ee..b278dbd881 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -22,6 +22,10 @@ 
 	functions.
 	* sysdeps/posix/pause.c: Include <sigsetops.h>.
 	* sysdeps/posix/system.c: Include <sigsetops.h>.
+	* 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.
 
 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
 
diff --git a/sysdeps/mach/hurd/i386/Makefile b/sysdeps/mach/hurd/i386/Makefile
index 5f988097c2..938d3b046d 100644
--- a/sysdeps/mach/hurd/i386/Makefile
+++ b/sysdeps/mach/hurd/i386/Makefile
@@ -6,3 +6,11 @@  endif
 ifeq ($(subdir),debug)
 gen-as-const-headers += signal-defines.sym
 endif
+
+ifeq ($(subdir),csu)
+ifeq (yes,$(build-shared))
+sysdep_routines += divdi3
+shared-only-routines += divdi3
+CPPFLAGS-divdi3.c = -Din_divdi3_c
+endif
+endif