From patchwork Tue Jun 17 17:25:40 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 360693 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 7FA0C140080 for ; Wed, 18 Jun 2014 03:25:54 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:mime-version :content-type; q=dns; s=default; b=DyH3KX23NEP6dWQeNPcV3kD8/+Lcc M05Y2/+67VG6Dcl862s+AGyLSH133jhMGGFxjfWY6oyKb884HOOibkpVE7m4caFa 1TjVReXwxu8Rz/TiTnp4XY+w7mxcZxhhLdZhj1UFURoF4cG1ozzSKDqGGksuddUJ DtPlBV/TYME/Ng= 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:date:from:to:subject:message-id:mime-version :content-type; s=default; bh=EqJIT/MUQQ+Rh1A6JbRFuNccYVU=; b=pQF KU1RtkB2yvbYEQMWQz3S73I89Vkxt7gAhOoc/yObhJVYMuw4BrTA6bD2P9yhX28R ZZVi4XIVFa8UqUSlYOqDEV5P2kFtYZ+bFMbgt80MtT1H2aMjLF9YXkq8OQu7LXOH DHCU3FMIJWJhagMrMjun+t917iBUruajOWi2PgoQ= Received: (qmail 28849 invoked by alias); 17 Jun 2014 17:25:48 -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 28836 invoked by uid 89); 17 Jun 2014 17:25:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00 autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Date: Tue, 17 Jun 2014 17:25:40 +0000 From: "Joseph S. Myers" To: Subject: Use $(rtld-prefix) more consistently Message-ID: MIME-Version: 1.0 The glibc makefiles have a standard variable, $(rtld-prefix), to run the dynamic linker with a default --library-path option; this is used as the basis of lots of other variables for running programs compiled with the newly build library. A few places however use $(elf-objpfx)ld.so or $(elf-objpfx)${rtld-installed-name} directly, with such a --library-path option. This patch makes such places use $(rtld-prefix) instead. I'm not aware of any significance in these cases to the choice of ld.so or ${rtld-installed-name} when running the dynamic linker, or to whether $(patsubst %,:%,$(sysdep-library-path)) is included in the library-path as it is in $(rtld-prefix) and just one of the places being changed. Tested x86_64. 2014-06-17 Joseph Myers * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix). * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules) [$(cross-compiling) = no]: Likewise. * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules) [$(cross-compiling) = no]: Likewise. localedata/ChangeLog: 2014-06-17 Joseph Myers * Makefile (LOCALEDEF): Use $(rtld-prefix). diff --git a/elf/Makefile b/elf/Makefile index a2f5ce5..6602ed5 100644 --- a/elf/Makefile +++ b/elf/Makefile @@ -1155,8 +1155,7 @@ $(objpfx)tst-unused-dep.out: $(objpfx)testobj1.so LD_TRACE_LOADED_OBJECTS=1 \ LD_DEBUG=unused \ LD_PRELOAD= \ - $(elf-objpfx)${rtld-installed-name} \ - --library-path $(rpath-link)$(patsubst %,:%,$(sysdep-library-path)) \ + $(rtld-prefix) \ $< > $@; \ $(evaluate-test) diff --git a/iconvdata/Makefile b/iconvdata/Makefile index 424e8ee..0a410a1 100644 --- a/iconvdata/Makefile +++ b/iconvdata/Makefile @@ -252,7 +252,7 @@ ifeq (no,$(cross-compiling)) # if this libc has more gconv modules than the previously installed one. if test -f "$(inst_gconvdir)/gconv-modules.cache"; then \ LC_ALL=C \ - $(elf-objpfx)ld.so --library-path $(rpath-link) \ + $(rtld-prefix) \ $(common-objpfx)iconv/iconvconfig \ $(addprefix --prefix=,$(install_root)); \ fi diff --git a/localedata/Makefile b/localedata/Makefile index 76eeedf..023f443 100644 --- a/localedata/Makefile +++ b/localedata/Makefile @@ -216,7 +216,7 @@ INSTALL-SUPPORTED-LOCALES=$(addprefix install-, $(SUPPORTED-LOCALES)) # Sometimes the whole collection of locale files should be installed. LOCALEDEF=I18NPATH=. GCONV_PATH=$(common-objpfx)iconvdata LC_ALL=C \ -$(elf-objpfx)ld.so --library-path $(rpath-link) $(common-objpfx)locale/localedef +$(rtld-prefix) $(common-objpfx)locale/localedef install-locales: $(INSTALL-SUPPORTED-LOCALES) install-locales-dir: diff --git a/sysdeps/s390/s390-64/Makefile b/sysdeps/s390/s390-64/Makefile index 4e69e90..fe5030e 100644 --- a/sysdeps/s390/s390-64/Makefile +++ b/sysdeps/s390/s390-64/Makefile @@ -77,7 +77,7 @@ ifeq (no,$(cross-compiling)) # if this libc has more gconv modules than the previously installed one. if test -f "$(inst_gconvdir)/gconv-modules.cache"; then \ LC_ALL=C \ - $(elf-objpfx)ld.so --library-path $(rpath-link) \ + $(rtld-prefix) \ $(common-objpfx)iconv/iconvconfig \ $(addprefix --prefix=,$(install_root)); \ fi