diff options
author | hexcoder- <heiko@hexco.de> | 2020-03-21 18:51:43 +0100 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2020-03-21 18:51:43 +0100 |
commit | 6cbd0f1faf576a3ba9021720b0ca63a3cdd260ab (patch) | |
tree | fbfadeeea0fcaa55d5b0b43cfbe41cfce5fb74a1 /llvm_mode | |
parent | dcd9cd638b186909d86ec3c3c27fdb0ceadd0a04 (diff) | |
download | afl++-6cbd0f1faf576a3ba9021720b0ca63a3cdd260ab.tar.gz |
avoid calling awk for 'which' replacement, use POSIX 'command -v' instead
Diffstat (limited to 'llvm_mode')
-rw-r--r-- | llvm_mode/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm_mode/Makefile b/llvm_mode/Makefile index 0dd4f0b5..2b1660a3 100644 --- a/llvm_mode/Makefile +++ b/llvm_mode/Makefile @@ -162,7 +162,7 @@ ifeq "$(shell uname)" "OpenBSD" CLANG_LFL += `$(LLVM_CONFIG) --libdir`/libLLVM.so endif -ifeq "$(shell echo 'int main() {return 0; }' | $(CC) -x c - -fuse-ld=`type ld | awk '{print $$NF}'` -o .test 2>/dev/null && echo 1 || echo 0 ; rm -f .test )" "1" +ifeq "$(shell echo 'int main() {return 0; }' | $(CC) -x c - -fuse-ld=`command -v ld` -o .test 2>/dev/null && echo 1 || echo 0 ; rm -f .test )" "1" CFLAGS += -DAFL_CLANG_FUSELD=1 endif |