diff options
author | Dominik Maier <domenukk@gmail.com> | 2020-02-12 12:00:38 +0100 |
---|---|---|
committer | Dominik Maier <domenukk@gmail.com> | 2020-02-12 12:00:38 +0100 |
commit | 5a114fd840305dff0692ccfb3c3aca0475f9ca8f (patch) | |
tree | edb9483260e6858617cb90bab1e3c5fd952cff8d /gcc_plugin | |
parent | 9db58da8b7be0f47209cba3b2d49247e3f1e13cf (diff) | |
parent | 54bbddec602feef0bd4e3bdc066c50779825d178 (diff) | |
download | afl++-5a114fd840305dff0692ccfb3c3aca0475f9ca8f.tar.gz |
Merge branch 'master' of github.com:vanhauser-thc/AFLplusplus
Diffstat (limited to 'gcc_plugin')
-rw-r--r-- | gcc_plugin/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc_plugin/Makefile b/gcc_plugin/Makefile index 9ad5c382..9d312a94 100644 --- a/gcc_plugin/Makefile +++ b/gcc_plugin/Makefile @@ -35,8 +35,9 @@ CC ?= gcc CXX ?= g++ PLUGIN_FLAGS = -fPIC -fno-rtti -I"$(shell $(CC) -print-file-name=plugin)/include" +HASH=\# -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 ; rm -f .test2 )" "1" +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" SHMAT_OK=1 else SHMAT_OK=0 |