]> gcc.gnu.org Git - gcc.git/commitdiff
libgomp: Use absolute pathname to testsuite/flock [PR113192]
authorJakub Jelinek <jakub@redhat.com>
Tue, 9 Jan 2024 08:54:06 +0000 (09:54 +0100)
committerJakub Jelinek <jakub@redhat.com>
Sat, 2 Mar 2024 00:37:21 +0000 (01:37 +0100)
When flock program doesn't exist, libgomp configure attempts to
offer a fallback version using a perl script, but we weren't using
absolute filename to that, so it apparently failed to work correctly.

The following patch arranges for it to get the absolute filename.

Tested by John David in the PR.

2024-01-09  Jakub Jelinek  <jakub@redhat.com>

PR libgomp/113192
* configure.ac (FLOCK): Use \$(abs_top_srcdir)/testsuite/flock
rather than $srcdir/testsuite/flock.
* configure: Regenerated.

(cherry picked from commit f2e967e0257bc8188840df236595e7218b6bf748)

libgomp/configure
libgomp/configure.ac

index ed18809ff1cef67dcc675fa6a895831cd97c445c..404f7064fd0c1a80986e5d83146baf89681acbb2 100755 (executable)
@@ -16550,7 +16550,7 @@ do
   test -z "$as_dir" && as_dir=.
     for ac_exec_ext in '' $ac_executable_extensions; do
   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
-    ac_cv_prog_FLOCK="$srcdir/testsuite/flock"
+    ac_cv_prog_FLOCK="\$(abs_top_srcdir)/testsuite/flock"
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     break 2
   fi
index cc96e5b753b4df4229d42ac6f5ddda916f75faa6..de7e8159053f24be99869be2bf4208156ef34f28 100644 (file)
@@ -343,7 +343,7 @@ AC_MSG_NOTICE([checking for flock implementation])
 AC_CHECK_PROGS(FLOCK, flock)
 # Fallback if 'perl' is available.
 if test -z "$FLOCK"; then
-  AC_CHECK_PROG(FLOCK, perl, $srcdir/testsuite/flock)
+  AC_CHECK_PROG(FLOCK, perl, \$(abs_top_srcdir)/testsuite/flock)
 fi
 
 # Get target configury.
This page took 0.072081 seconds and 5 git commands to generate.