summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2019-11-06 12:24:18 +1300
committerDouglas Bagnall <dbagnall@samba.org>2019-11-20 23:19:35 +0000
commit92ee647858331db012db06314d98e08fe1e5eb5b (patch)
tree227377b07b2895d4524168cf4083fd80cb43098e /lib
parentcb240510977e60fd46ef0f35b3da77f00733829a (diff)
downloadsamba-92ee647858331db012db06314d98e08fe1e5eb5b.tar.gz
lib/fuzzing: Use --fuzz-target-ldflags if specified
This makes integration with oss-fuzz possible. Only the fuzzer binaries should be linked with libFuzzer, not things like asn1_compile, so this can not be done via the global ADDITIONAL_LDFLAGS. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Uri Simchoni <uri@samba.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/fuzzing/wscript_build2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fuzzing/wscript_build b/lib/fuzzing/wscript_build
index 00a263ef877..386145c43b2 100644
--- a/lib/fuzzing/wscript_build
+++ b/lib/fuzzing/wscript_build
@@ -3,7 +3,7 @@
bld.SAMBA_SUBSYSTEM('fuzzing',
source='fuzzing.c',
deps='talloc',
- enabled=bld.env.enable_libfuzzer,
+ enabled=bld.env.enable_libfuzzer
)
bld.SAMBA_BINARY('fuzz_tiniparser',