aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-09-11 22:01:49 +0100
committerSam James <sam@gentoo.org>2024-09-12 22:53:22 +0100
commit669aeefedb052360e16d7572b72f22cf2f81df01 (patch)
tree868a94f8a7a9dad8439ccd64dede1bf6872ddfff
parentf89276a2f3e843a011bb3726dd5e7d41b566252c (diff)
downloadgdb-669aeefedb052360e16d7572b72f22cf2f81df01.zip
gdb-669aeefedb052360e16d7572b72f22cf2f81df01.tar.gz
gdb-669aeefedb052360e16d7572b72f22cf2f81df01.tar.bz2
gprofng: avoid use of non-portable which [PR32166]
Distributions like Debian [0] and Gentoo are phasing out the use of the non-portable `which` utility. Use POSIX's `command -v` instead. [0] https://lwn.net/Articles/874049/ gprofng/ChangeLog PR gprofng/32166 * testsuite/lib/Makefile.skel (JAVABIN): Replace use of which.
-rw-r--r--gprofng/testsuite/lib/Makefile.skel2
1 files changed, 1 insertions, 1 deletions
diff --git a/gprofng/testsuite/lib/Makefile.skel b/gprofng/testsuite/lib/Makefile.skel
index 8ea994d..2c98720 100644
--- a/gprofng/testsuite/lib/Makefile.skel
+++ b/gprofng/testsuite/lib/Makefile.skel
@@ -23,7 +23,7 @@ CFLAGS = -g -Wall
SHAREDOPT = -fpic -shared
#JAVABIN = /usr/java/latest/bin
-JAVABIN = $(shell dirname `which java`)
+JAVABIN = $(shell dirname `command -v java`)
JAVA = $(JAVABIN)/java
JAVAC = $(JAVABIN)/javac