libcheck / check

A unit testing framework for C
GNU Lesser General Public License v2.1
1.07k stars 209 forks source link

Allow disabling autodetection of subunit library #353

Open obbardc opened 2 months ago

obbardc commented 2 months ago

It can be useful to avoid linking to subunit when we are building the check library for the host, e.g. in a buildroot recipe, where the built check is linked into other applications which are used on the host to build images.

These applications are built with the host's cross-compiler and can use the host's pkgconfig to determine if libraries are available. When check is linked against other libraries, it can fail this check for subunit.

Allow disabling the autodetection of subunit with a configure flag -DENABLE_SUBUNIT_EXT=OFF