public inbox for dwz@sourceware.org
 help / color / mirror / Atom feed
* [committed] Fix hardcoded path in configure
@ 2019-01-01  0:00 Tom de Vries
  0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2019-01-01  0:00 UTC (permalink / raw)
  To: dwz, jakub; +Cc: Matthias Klose

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  <tdevries@suse.de>

	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 <<EOF
-srcdir:=\$(shell pwd -P)/../src
+srcdir:=$srcdir
 
 default:
 	\$(MAKE) -f \$(srcdir)/Makefile srcdir=\$(srcdir)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-07-02  8:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-01  0:00 [committed] Fix hardcoded path in configure Tom de Vries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).