about summary refs log tree commit diff
path: root/llvm_mode
diff options
context:
space:
mode:
authorHeiko Eissfeldt <heiko@hexco.de>2019-07-02 20:20:07 +0200
committerHeiko Eissfeldt <heiko@hexco.de>2019-07-02 20:20:07 +0200
commitcc48f4499a6b4d646c19b99c0905324161eb03ed (patch)
tree43a0c9832d48932c6535be554b9ac0bb54651645 /llvm_mode
parent3e2f2ddb564418093483b963dec509821d89d2b4 (diff)
downloadafl++-cc48f4499a6b4d646c19b99c0905324161eb03ed.tar.gz
add librt under NetBSD
Diffstat (limited to 'llvm_mode')
-rw-r--r--llvm_mode/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm_mode/Makefile b/llvm_mode/Makefile
index 9f3cd010..e2ed07d6 100644
--- a/llvm_mode/Makefile
+++ b/llvm_mode/Makefile
@@ -54,6 +54,9 @@ ifeq "$(shell uname)" "Darwin"
   CLANG_LFL += -Wl,-flat_namespace -Wl,-undefined,suppress
 endif
 
+ifeq "$(shell uname)" "NetBSD"
+  LDFLAGS += -lrt
+endif
 
 ifeq "$(shell echo '\#include <stdio.h>XXX\#include <sys/ipc.h>XXX\#include <sys/shm.h>XXXvoid main() { int _id = shmget(IPC_PRIVATE, 65536, IPC_CREAT | IPC_EXCL | 0600); shmctl(_id, IPC_RMID, NULL);}' | sed 's/XXX/\n/g' | $(CC) -x c - -o .test2 && echo 1 || echo 0 )" "1"
         SHMAT_OK=1