From patchwork Wed Jul 8 21:26:46 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roland McGrath X-Patchwork-Id: 493169 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 5E875140D15 for ; Thu, 9 Jul 2015 07:26:57 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b=qgSwWfUz; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:content-type :content-transfer-encoding:from:to:subject:message-id:date; q= dns; s=default; b=XYbXniTh5AiBGV0iWmHlsgUM1/4PQjbJbjJwvFXw4lRQmQ GEIt3NvBqDh60mfFKKangknqNr9TUUqaqnFvSlMFJIGzV8+InC8rZCL/tcLy+WCH +gD2TwaMyDbJkeqTtSivxlnpTuImECRPkAJVi7byIZKOG+bXrWb2Wujib1UXA= 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:mime-version:content-type :content-transfer-encoding:from:to:subject:message-id:date; s= default; bh=2SWqUeMFZN2kY7CO+azPKEGZK5Y=; b=qgSwWfUzZY95gYjzFaHv QGle9NAYkAyyM3DvrVyS68yg2GrKx12ELwsqlhXUJMU3ASzbRe5sOohRkIMsSi2m 1NbS6Bfc/UyW5T5AF+ctWESGfetYwcfxvKJ3NEGDsZh4dNEnrVdl7pHZQTQ2//3a YuXmBgJfq1Q2hr4TBR6Bz30= Received: (qmail 81722 invoked by alias); 8 Jul 2015 21:26:49 -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 81712 invoked by uid 89); 8 Jul 2015 21:26:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL, BAYES_00, KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 X-HELO: topped-with-meat.com MIME-Version: 1.0 From: Roland McGrath To: "GNU C. Library" Subject: [COMMITTED PATCH] Fix some places to use $(LN_S) makefile variable. Message-Id: <20150708212646.16B742C39FC@topped-with-meat.com> Date: Wed, 8 Jul 2015 14:26:46 -0700 (PDT) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=SvUDtp+0 c=1 sm=1 tr=0 a=WkljmVdYkabdwxfqvArNOQ==:117 a=14OXPxybAAAA:8 a=hOe2yjtxAAAA:8 a=kj9zAlcOel0A:10 a=AO2vjOv1KqL6n_DPHAAA:9 a=CjuIK1q_8ugA:10 Most everything uses $(LN_S) already. This covers the remainder in makefiles. A caveat is that a lot actually uses scripts/rellns-sh and that script uses 'ln -s' directly--but the script is skipped when $(LN_S) doesn't contain '-s', which suffices for the common case of caring about this (e.g. a Windows cross-host, where one would use LN_S=ln). Thanks, Roland * Makerules (do-install-so): Use $(LN_S) rather than explicit 'ln -s'. * elf/Makefile ($(objpfx)$(rtld-installed-name)): Use $(make-link) rather than explicit 'ln -s'. diff --git a/Makerules b/Makerules index 372b3c0..f9ca3f5 100644 --- a/Makerules +++ b/Makerules @@ -1132,7 +1132,8 @@ endif define do-install-so $(do-install-program) -$(patsubst %,ln -s -f $(@F) $(@D)/$(patsubst %$*.so,%,$(