From patchwork Wed Mar 19 15:41:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 331769 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 7B7EB2C009C for ; Thu, 20 Mar 2014 02:45:24 +1100 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:reply-to:mime-version:content-type; q=dns; s=default; b=bucMIjRilg0nmG49+7H8bSIrs4KwYtv+HaMISTBEk0T ZkvcOa89RxVVOYWiPOOvf/DRi2KEq8sM+gaHJJOVwG+XruGp5cylYP0wNvLDjzih 4pK8rDr2b+jbcI9UmvXqtrGwAl+D/IHhxk1hqRpspmEqrovDcEOt47dTkY0zh7LY = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:reply-to:mime-version:content-type; s=default; bh=uzOiFQh3Iu3i3+O/cXDKJzY31QY=; b=RfdGvxQHCYP7WuGDd MtJ/HLlMZ3xJwb4UWYqmt7h+Qh5HKOwyxI/2A7O7IWShvVEgX3Ra4ZT/AfalqRbs R4MCs6zADe9jOHguIjtW3cj9WGReJ4iUNOddQtZgfh6tqCzU64aiatPaEHyk6y79 zPHwRI6DGAnLWAEI3g00GEV4Rs= Received: (qmail 1258 invoked by alias); 19 Mar 2014 15:45:18 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 1169 invoked by uid 89); 19 Mar 2014 15:45:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL, BAYES_00, NO_DNS_FOR_FROM, T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: mga02.intel.com Received: from mga02.intel.com (HELO mga02.intel.com) (134.134.136.20) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 19 Mar 2014 15:45:16 +0000 Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 19 Mar 2014 08:42:05 -0700 X-ExtLoop1: 1 Received: from gnu-6.sc.intel.com ([10.3.194.64]) by orsmga001.jf.intel.com with ESMTP; 19 Mar 2014 08:41:27 -0700 Received: by gnu-6.sc.intel.com (Postfix, from userid 1000) id D796C200C04; Wed, 19 Mar 2014 08:41:27 -0700 (PDT) Date: Wed, 19 Mar 2014 08:41:27 -0700 From: "H.J. Lu" To: gcc-patches@gcc.gnu.org Subject: PATCH: PR target/60590: Can't recreate the same executable in testsuite Message-ID: <20140319154127.GA22142@intel.com> Reply-To: "H.J. Lu" MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) GNU linker sets DT_RPATH from the environment variable LD_RUN_PATH. set_ld_library_path_env_vars sets a few environment variables including LD_RUN_PATH. This patch logs all environment variables set by set_ld_library_path_env_vars so that one can recreate the same executable as "make check" run. OK to install? Thanks. H.J. --- 2014-03-19 H.J. Lu PR target/60590 * lib/target-libpath.exp (set_ld_library_path_env_vars): Log LD_LIBRARY_PATH, LD_RUN_PATH, SHLIB_PATH, LD_LIBRARY_PATH_32, LD_LIBRARY_PATH_64 and DYLD_LIBRARY_PATH. diff --git a/gcc/testsuite/lib/target-libpath.exp b/gcc/testsuite/lib/target-libpath.exp index 603ed8a..1891088 100644 --- a/gcc/testsuite/lib/target-libpath.exp +++ b/gcc/testsuite/lib/target-libpath.exp @@ -155,7 +155,12 @@ proc set_ld_library_path_env_vars { } { setenv DYLD_LIBRARY_PATH "$ld_library_path" } - verbose -log "set_ld_library_path_env_vars: ld_library_path=$ld_library_path" + verbose -log "LD_LIBRARY_PATH=[getenv LD_LIBRARY_PATH]" + verbose -log "LD_RUN_PATH=[getenv LD_RUN_PATH]" + verbose -log "SHLIB_PATH=[getenv SHLIB_PATH]" + verbose -log "LD_LIBRARY_PATH_32=[getenv LD_LIBRARY_PATH_32]" + verbose -log "LD_LIBRARY_PATH_64=[getenv LD_LIBRARY_PATH_64]" + verbose -log "DYLD_LIBRARY_PATH=[getenv DYLD_LIBRARY_PATH]" } #######################################