lib/fuzzing: Use --fuzz-target-ldflags if specified
authorAndrew Bartlett <abartlet@samba.org>
Tue, 5 Nov 2019 23:24:18 +0000 (12:24 +1300)
committerDouglas Bagnall <dbagnall@samba.org>
Wed, 20 Nov 2019 23:19:35 +0000 (23:19 +0000)
commit92ee647858331db012db06314d98e08fe1e5eb5b
tree227377b07b2895d4524168cf4083fd80cb43098e
parentcb240510977e60fd46ef0f35b3da77f00733829a
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>
buildtools/wafsamba/wafsamba.py
buildtools/wafsamba/wscript
lib/fuzzing/wscript_build