mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-23 01:53:38 +08:00
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.
This commit is contained in:
parent
f89276a2f3
commit
669aeefedb
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user