diff options
| author | van Hauser <vh@thc.org> | 2023-09-11 07:38:45 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-11 07:38:45 +0000 |
| commit | 0688c779ec543c4f5f84363b06c72ac11a14f716 (patch) | |
| tree | d8a48ed4ef6484918f3832c61af60af81f5d5392 /utils/afl_untracer/Makefile | |
| parent | 11a622c63d70c9ca16c9847418b88992139aa892 (diff) | |
| parent | 5f6c76e192bcfde6abcf9d4156bfbb87d5480e23 (diff) | |
| download | afl++-0688c779ec543c4f5f84363b06c72ac11a14f716.tar.gz | |
Merge pull request #1857 from AFLplusplus/dev
push to stable
Diffstat (limited to 'utils/afl_untracer/Makefile')
| -rw-r--r-- | utils/afl_untracer/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/utils/afl_untracer/Makefile b/utils/afl_untracer/Makefile index 14a09b41..264aebe5 100644 --- a/utils/afl_untracer/Makefile +++ b/utils/afl_untracer/Makefile @@ -3,11 +3,16 @@ ifdef DEBUG else OPT=-O3 endif +SYS = $(shell uname -s) +DL = +ifeq "$(SYS)" "Linux" + DL = -ldl +endif all: afl-untracer libtestinstr.so afl-untracer: afl-untracer.c - $(CC) $(OPT) -I../../include -g -o afl-untracer afl-untracer.c -ldl + $(CC) $(OPT) -I../../include -g -o afl-untracer afl-untracer.c $(DL) libtestinstr.so: libtestinstr.c $(CC) -g -O0 -fPIC -o libtestinstr.so -shared libtestinstr.c |
