mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-18 21:27:56 +00:00
base-linux: remove residual use of 'which' command
This is a follow-up commit for "Remove dependency from 'which' utility". Issue #4319
This commit is contained in:
parent
ef130a027b
commit
ab9b75236d
@ -31,10 +31,10 @@ CXX_LINK_OPT += $(addprefix -L,$(HOST_LIB_SEARCH_DIRS))
|
||||
# Determine ldconfig executable
|
||||
#
|
||||
# On Ubuntu, /sbin/ is in the PATH variable. Hence we try using the program
|
||||
# found via 'which'. If 'which' does not return anything (i.e., on Debian),
|
||||
# found via 'command -v'. If it does not return anything (i.e., on Debian),
|
||||
# try using the expected location '/sbin/'.
|
||||
#
|
||||
LDCONFIG := $(firstword $(wildcard $(shell which ldconfig) /sbin/ldconfig))
|
||||
LDCONFIG := $(firstword $(wildcard $(shell command -v ldconfig) /sbin/ldconfig))
|
||||
ifeq ($(LDCONFIG),)
|
||||
$(error ldconfig is not found)
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user