oss-fuzz: move linker arg to fix coverage-build
commitff9ed62b90c3cc337c9e6317d65cc9a9c84f07ce
authorAlexander Bulekov <alxndr@bu.edu>
Wed, 9 Sep 2020 22:05:16 +0000 (9 18:05 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 30 Sep 2020 17:11:36 +0000 (30 19:11 +0200)
tree1c53ea7758d177abeebe6b21d2f31609833a9bea
parent6e01884c3694807fd39fe0aab9e5f7d5e6c06969
oss-fuzz: move linker arg to fix coverage-build

The order of the add_project_link_arguments calls impacts which
arguments are placed between --start-group and --end-group.
OSS-Fuzz coverage builds seem to just add these to CFLAGS:
-fprofile-instr-generate -fcoverage-mapping pthread -Wl,--no-as-needed
-Wl,-ldl -Wl,-lm Wno-unused-command-line-argument

The -Wl,-ldl flag that is enough to shift the fork_fuzz.ld linker-script
back into the linker group. Move the linker-script meson call before the
other calls to make sure the flag is placed correctly.

Signed-off-by: Alexander Bulekov <alxndr@bu.edu>
Message-Id: <20200909220516.614222-1-alxndr@bu.edu>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
meson.build