HomeClusterLabs Projects

Build: libcrmcommon: Add -fno-builtin -fno-inline for libcrmcommon_test.a.

Description

Build: libcrmcommon: Add -fno-builtin -fno-inline for libcrmcommon_test.a.

Our unit tests using a mocked version of strdup were failing on RHEL7
because gcc was still emitting its own code instead of using the mocked
version. All other test cases were fine. Adding these two arguments
fixes things, and we should probably have been doing this all along.

Details

Provenance
clumensAuthored on Aug 10 2022, 3:29 PM
Parents
rP54c062060f12: Build: libcrmcommon: Use -DPCMK__UNIT_TESTING and LDFLAGS_WRAP everywhere.
Branches
Unknown
Tags
Unknown