#1095771 netperfmeter FTCBFS: uses CHECK_C_SOURCE_RUNS

Package:
src:netperfmeter
Source:
src:netperfmeter
Submitter:
Helmut Grohne
Date:
2025-02-11 20:18:03 UTC
Severity:
normal
Tags:
#1095771#5
Date:
2025-02-11 16:24:39 UTC
From:
To:
netperfmeter fails to cross build from source, because it uses
CHECK_C_SOURCE_RUNS twice. While the first invocation really benefits
from running code, the second invocation merely validates a few compile
time constants. The test does not degrade by using
CHECK_C_SOURCE_COMPILES instead. The latter macro is compatible with
cross compilation though. I'm attaching a patch for it.

This does not make netperfmeter cross buildable out of the box, but it
reduces the configuration a builder has to supply to
USES_IEEEFP_FP_EXITCODE, so please close the bug once improving this
aspect.

Helmut