From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4257 invoked by alias); 2 Jul 2019 08:37:48 -0000 Mailing-List: contact dwz-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Post: List-Help: List-Subscribe: Sender: dwz-owner@sourceware.org Received: (qmail 4247 invoked by uid 89); 2 Jul 2019 08:37:48 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.100.3 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.6 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:841 X-Spam-Status: No, score=-24.6 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_PASS autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on sourceware.org X-Spam-Level: X-HELO: mx1.suse.de X-Virus-Scanned: by amavisd-new at test-mx.suse.de Date: Tue, 01 Jan 2019 00:00:00 -0000 From: Tom de Vries To: dwz@sourceware.org, jakub@redhat.com Cc: Matthias Klose Subject: [committed] Fix hardcoded path in configure Message-ID: <20190702083741.GA15156@delia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-SW-Source: 2019-q3/txt/msg00006.txt.bz2 Hi, The configure script generates a Makefile containing: ... srcdir:=$(shell pwd -P)/../src ... which assumes that the sources are located in a $build/../src directory. Fix this by getting the source path using the path to the configure script. Committed to trunk. Thanks, - Tom Fix hardcoded path in configure 2019-07-02 Tom de Vries PR dwz/24755 * configure: Don't assume sources are in $build/../src. --- configure | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 92a02e7..24f3fd2 100755 --- a/configure +++ b/configure @@ -1,7 +1,8 @@ #!/bin/sh +srcdir=$(cd $(dirname $0); pwd -P) cat > Makefile <