about summary refs log tree commit diff
path: root/gcc_plugin
diff options
context:
space:
mode:
authorAndrea Fioraldi <andreafioraldi@gmail.com>2020-02-11 21:31:05 +0100
committerAndrea Fioraldi <andreafioraldi@gmail.com>2020-02-11 21:31:05 +0100
commita1c54425f7aad6535870e1a2a24891ea5d800cb2 (patch)
tree9266dcc3e3e8f9bc48b60c96e2d2ebed23257b67 /gcc_plugin
parente22ba031f552bf41fb24286b54c0417d5ddd464a (diff)
parent08ad02d2b0eae397f097e578ad990f13f2a8e373 (diff)
downloadafl++-a1c54425f7aad6535870e1a2a24891ea5d800cb2.tar.gz
Merge branch 'master' of github.com:vanhauser-thc/AFLplusplus
Diffstat (limited to 'gcc_plugin')
-rw-r--r--gcc_plugin/Makefile3
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