tools/oss-fuzz: add clang library dir using -L
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 12 Mar 2018 14:59:10 +0000 (15:59 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 12 Mar 2018 14:59:25 +0000 (15:59 +0100)
commit36cd9913ced4817aaf832d0402422d1c222e9b78
treedc4f188d85c69dc0a2f6769763aefccce22aecfc
parent9037a0e022767fdcc6b6a2d5f79b65788222f408
tools/oss-fuzz: add clang library dir using -L

I have no idea why clang doesn't do this on its own, and why clang
makes it so hard to query this path (-dumpversion returns something
unrelated...).

I know this is an ugly hack, but this is a very specialized script,
so it should be OK to make it a bit hacky.

Tested to work on Fedora (27) and Debian (unstable).

Fixes #8428.
tools/oss-fuzz.sh