diff options
author | van Hauser <vh@thc.org> | 2020-01-11 16:13:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-11 16:13:36 +0100 |
commit | f369bf6b8003b7c4bdf17b87e22a8c44126ac6bc (patch) | |
tree | 279510a6206317f3ac0efbef1dec057f96a8f32a | |
parent | 8a44b572fc0ec8ded48fc9fb1abf60f692727af3 (diff) | |
parent | a6d6ac24139c3c2de1479ba1851894e837e335f6 (diff) | |
download | afl++-f369bf6b8003b7c4bdf17b87e22a8c44126ac6bc.tar.gz |
Merge pull request #171 from devnexen/obsd_build_fix
experimental OpenBSD build fix
-rw-r--r-- | experimental/argv_fuzzing/Makefile | 6 | ||||
-rw-r--r-- | experimental/socket_fuzzing/Makefile | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/experimental/argv_fuzzing/Makefile b/experimental/argv_fuzzing/Makefile index 7f9378e8..ab16be87 100644 --- a/experimental/argv_fuzzing/Makefile +++ b/experimental/argv_fuzzing/Makefile @@ -18,7 +18,11 @@ BIN_PATH = $(PREFIX)/bin HELPER_PATH = $(PREFIX)/lib/afl CFLAGS = -fPIC -Wall -Wextra -LDFLAGS = -shared -ldl +LDFLAGS = -shared + +ifneq "$(filter Linux GNU%,$(shell uname))" "" + LDFLAGS += -ldl +endif all: argvfuzz32.so argvfuzz64.so diff --git a/experimental/socket_fuzzing/Makefile b/experimental/socket_fuzzing/Makefile index b4ed9456..0191ba53 100644 --- a/experimental/socket_fuzzing/Makefile +++ b/experimental/socket_fuzzing/Makefile @@ -16,7 +16,11 @@ BIN_PATH = $(PREFIX)/bin HELPER_PATH = $(PREFIX)/lib/afl CFLAGS = -fPIC -Wall -Wextra -LDFLAGS = -shared -ldl +LDFLAGS = -shared + +ifneq "$(filter Linux GNU%,$(shell uname))" "" + LDFLAGS += -ldl +endif all: socketfuzz32.so socketfuzz64.so |