HomeClusterLabs Projects

Build: configure: Fix "make check" running under coverage/profiling.

Description

Build: configure: Fix "make check" running under coverage/profiling.

When either --with-coverage or --with-profiling is passed to
./configure, "make check" will fail because at least one of the test
programs uses the fabs function and that symbol will not be found. This
is because those two build options add -fno-builtin, which tells gcc to
not pull in any of its builtin function implementations.

fabs happens to be a gcc builtin. So, add -lm to the linked command
line only when one of those options is present.

Details

Provenance
clumensAuthored on May 26 2021, 5:24 PM
Parents
rPaa0a8fb730a5: Build: GNUmakefile: Remove coverage files with "make clean".
Branches
Unknown
Tags
Unknown

Event Timeline