diff options
author | David CARLIER <devnexen@gmail.com> | 2020-09-26 18:02:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-26 19:02:19 +0200 |
commit | e85fde201e988cf9e7cf608be394977f7c045a75 (patch) | |
tree | f246e56c69f8a09247a23ce797da408854fe4a99 /GNUmakefile.llvm | |
parent | e301822c684b4948ca5e21b40f437940469238f5 (diff) | |
download | afl++-e85fde201e988cf9e7cf608be394977f7c045a75.tar.gz |
OpenBSD build fix (#566)
* OpenBSD build fix proposal. Mainly the gcc plugin, using one of the egcc/eg++ version available. Needs pthread flag to r/w lock api. * README update
Diffstat (limited to 'GNUmakefile.llvm')
-rw-r--r-- | GNUmakefile.llvm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/GNUmakefile.llvm b/GNUmakefile.llvm index ef2a1f68..da0a6298 100644 --- a/GNUmakefile.llvm +++ b/GNUmakefile.llvm @@ -279,7 +279,7 @@ ifeq "$(shell uname)" "OpenBSD" CLANG_CPPFL += -mno-retpoline CFLAGS += -mno-retpoline # Needed for unwind symbols - LDFLAGS += -lc++abi + LDFLAGS += -lc++abi -lpthread endif ifeq "$(shell echo '$(HASH)include <sys/ipc.h>@$(HASH)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 ; rm -f .test2 )" "1" |