https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=895f6d2b598e5d0da020eef2edb92f215db8eb39

commit 895f6d2b598e5d0da020eef2edb92f215db8eb39
Author: Corinna Vinschen <[email protected]>
Date:   Thu May 6 10:56:20 2021 +0200

    Cygwin: autogen.sh: Allow running from any directory
    
    autogen.sh expects to run from within the winsup dir, so
    set CWD accordingly before running autotools.
    
    Signed-off-by: Corinna Vinschen <[email protected]>

Diff:
---
 winsup/autogen.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/winsup/autogen.sh b/winsup/autogen.sh
index 2dae1ae37..22036d976 100755
--- a/winsup/autogen.sh
+++ b/winsup/autogen.sh
@@ -1,4 +1,6 @@
+#!/bin/sh
 set -e
+cd $(dirname $0)
 /usr/bin/aclocal --force
 /usr/bin/autoconf -f
 /usr/bin/automake -ac

Reply via email to