diff options
author | hexcoder- <heiko@hexco.de> | 2019-08-14 22:41:39 +0200 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2019-08-14 22:48:06 +0200 |
commit | 7cb0658b0091ecae9458c250505a05d1402a4fc8 (patch) | |
tree | 7a2293191f0e1b442dc0bbdfe49dcee574948872 | |
parent | 925cfba424095a70e8476dfe25a94704639fc597 (diff) | |
download | afl++-7cb0658b0091ecae9458c250505a05d1402a4fc8.tar.gz |
more sed compatibility for Freebsd, avoid grouping
-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 fc7a6fd9..160a8fe6 100644 --- a/llvm_mode/Makefile +++ b/llvm_mode/Makefile @@ -75,7 +75,7 @@ endif # sanity check. # Are versions of clang --version and llvm-config --version equal? -CLANGVER = $(shell $(CC) --version | sed -E -ne '1{/^.*([0-9]\.[0-9]\.[0-9]).*/s//\1/p}') +CLANGVER = $(shell $(CC) --version | sed -E -ne '/^.*version\ ([0-9]\.[0-9]\.[0-9]).*/s//\1/p') ifeq "$(shell echo '\#include <sys/ipc.h>@\#include <sys/shm.h>@int main() { int _id = shmget(IPC_PRIVATE, 65536, IPC_CREAT | IPC_EXCL | 0600); shmctl(_id, IPC_RMID, 0); return 0;}' | tr @ '\n' | $(CC) -x c - -o .test2 2>/dev/null && echo 1 || echo 0 )" "1" |