From patchwork Sun Sep 3 03:00:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 809195 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-84136-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="KTOUacHh"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xlHmh43Pnz9t24 for ; Sun, 3 Sep 2017 13:01:08 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; q=dns; s= default; b=D7fWs434sJ7YxIY7cbTnGslgCNh4Nyqnoruyqf1zgwmAY4Chjw3if 4/knS+gzsAM6ftbiUDj/M7Onn9wxlVD3SCU8mADZX6U3L3m2O1dN3dA18RgJ6Wxp kNnHrYna9JUcctK8++FYPdK4b7C54ZD1S8sZ+RXDJ0PPXtj14r+HiA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; s=default; bh=BLJeTaQanO+8b/B0K9ILsdJru3A=; b=KTOUacHhKzPrUs76i2iVFBZw6A7b BhkqyCpnrRlUJfU3EkfCJ2lbuEPEnF8IC1PZtRccG2/ymcX20gFkUYvMcLZSwVln Cw0+KhAZgu98+ueqPfzjVakTBfFA8sMV+1AODiwmis2HIhIRhMpiJuytvcukEjH4 W59xH+FXuECRXnU= Received: (qmail 69019 invoked by alias); 3 Sep 2017 03:00:56 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 18877 invoked by uid 89); 3 Sep 2017 03:00:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS, SPF_NEUTRAL, URIBL_RED autolearn=ham version=3.3.2 spammy= X-HELO: hera.aquilenet.fr From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault Subject: [hurd,commited] hurd: Fix libc link Date: Sun, 3 Sep 2017 05:00:09 +0200 Message-Id: <20170903030009.10106-1-samuel.thibault@ens-lyon.org> 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 --git a/ChangeLog b/ChangeLog index 858848c9ee..b278dbd881 100644 --- a/ChangeLog +++ b/ChangeLog @@ -22,6 +22,10 @@ functions. * sysdeps/posix/pause.c: Include . * sysdeps/posix/system.c: Include . + * 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 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