[newlib-cygwin] Cygwin: testsuite: automake doesn't define objdir

Jon Turney jturney@sourceware.org
Fri Jan 13 17:04:50 GMT 2023


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

commit 50a741e2f112fdf49a229818aa1242daed9558de
Author: Jon Turney <jon.turney@dronecode.org.uk>
Date:   Mon Aug 29 16:11:59 2022 +0100

    Cygwin: testsuite: automake doesn't define objdir
    
    objdir isn't a predefined output variable in Automake (any more?), so
    this was just using the absolute path /testsuite as the test's temporary
    directory.  Use builddir instead.

Diff:
---
 winsup/testsuite/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/winsup/testsuite/Makefile.am b/winsup/testsuite/Makefile.am
index a7b435c46..a2fa34811 100644
--- a/winsup/testsuite/Makefile.am
+++ b/winsup/testsuite/Makefile.am
@@ -38,7 +38,7 @@ RUNTESTFLAGS_1 = -v
 RUNTESTFLAGS = $(RUNTESTFLAGS_$(V))
 
 # a temporary directory, to be used for files created by tests
-tmpdir = $(abspath $(objdir)/testsuite/tmp/)
+tmpdir = $(abspath $(builddir)/tmp/)
 # the same temporary directory, as an absolute, /cygdrive path (so it can be
 # understood by the test DLL, which will have a different mount table)
 testdll_tmpdir = $(shell cygpath -ma $(tmpdir) | sed -e 's#^\([A-Z]\):#/cygdrive/\L\1#')


More information about the Cygwin-cvs mailing list